LinkButton (Button) Components

A, // class loading

      <div id="pos" class="easyui-linkbutton">按钮</div>

Two, js loading

   <a id="pos" href="#">按钮</a>

   <a id="bob" href="#">按钮一</a>


   $ ( "# POS") LinkButton ({.
        @ attribute
    id: "non", // change the ID
    text: "button 1", // the button text, defaults to an empty string value String
    Toggle: to true, // which allows the user to toggle whether true state is selected, a check may be implemented checkbox effect defaults to false.
    disabled: to false, // set to true, the adjustment disabled, the default is to false
    selected: to false, // definition of the initial selection state of the button, true is checked, unchecked by default to false to false.
    group: 'Sex', // * function at a tag, the same group name designation button belonging to the same group, the effect of the radio radio can be achieved, the default is null, value String
    Plain: true, simple display effect is set to true // defaults to false.
    iconCls: 'icon-filter', // class ID in the CSS icon to the left of the button text (16x16), the default is null, value as String
    iconAlign: 'right', // default button icon position left, as well as right / Top / bottom.
   });
  // method
    // returns attribute object console.log ($ ( '# pos' ) linkbutton (. 'Options'));
    // disable button $ ('#pos').linkbutton('disable');
    // Enable button $ ( '# pos') LinkButton ( 'enable');.
    // select button $ ( '# pos') LinkButton ( 'the SELECT');.
    // cancel selection button $ ( '# pos') .linkbutton ( 'unselect');


  $("#bob").linkbutton({
    toggle:true,
    group:'sex',
  })

Three, may be used to override the default value of the object $ .fn.linkbutton.defaults.iconCls = 'icon-edit' ;

Guess you like

Origin www.cnblogs.com/Alaic2052243080/p/11512797.html