Sunday, March 25, 2007

GWT Stylesheet Howto


  • ใน GWT เวลาต้องการใช้ DOM.setAttribtue ตั้งค่าให้กับ attribute "class" ต้องใช้คำว่า "className" แทนในการอ้างอิง คือต้องเขียนว่า DOM.setAttribtue(element, "className", "name");

  • นอกจากนั้น เวลาจะใช้ DOM.setStyleAttribute ตั้งค่า attribute ที่มี "-" คั่นอยู่ ต้องเปลี่ยนไปเป็นแบบไม่มี เช่นเปลี่ยน backgroung-image ไปเป็น backgroundImage แทน

No comments: