Widget API


Contents

  • Widget API
    • K.widget(options)

K.widget(options)¶

创建widget。

  • 参数:
    • object options: 配置信息
  • 返回: KWidget

示例:

  1. var widget = K.widget({
  2. z : 100,
  3. width : 200,
  4. height : 100,
  5. html : '<strong>abc</strong>123<strong>abc</strong><strong>abc</strong>',
  6. css : {
  7. border : '1px solid #A0A0A0',
  8. background : '#F0F0F0'
  9. }
  10. });