Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CJuiAccordion
  • CJuiAutoComplete
  • CJuiButton
  • CJuiDatePicker
  • CJuiDialog
  • CJuiDraggable
  • CJuiDroppable
  • CJuiInputWidget
  • CJuiProgressBar
  • CJuiResizable
  • CJuiSelectable
  • CJuiSlider
  • CJuiSliderInput
  • CJuiSortable
  • CJuiTabs
  • CJuiWidget
  • Overview
  • Package
  • Class
  • Tree

Class CJuiButton

CJuiButton displays a button widget.

CJuiButton encapsulates the JUI Button plugin.

To use this widget as a submit button, you may insert the following code in a view:

$this->widget('zii.widgets.jui.CJuiButton',array(
    'buttonType'=>'submit',
    'name'=>'btnSubmit',
    'value'=>'1',
    'caption'=>'Submit form',
    'htmlOptions'=>array('class'=>'ui-button-primary')
    ),
));

To use this widget as a button, you may insert the following code in a view:

$this->widget('zii.widgets.jui.CJuiButton',array(
    'buttonType'=>'button',
    'name'=>'btnSave',
    'caption'=>'Save',
    'onclick'=>new CJavaScriptExpression('function(){alert("Save button clicked"); this.blur(); return false;}'),
));

By configuring the CJuiWidget::$options property, you may specify the options that need to be passed to the JUI button plugin. Please refer to the JUI Button API documentation for possible options (name-value pairs) and JUI Button page for general description and demo.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CJuiWidget
Extended by CJuiInputWidget
Extended by CJuiButton
Package: zii\widgets\jui
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Sebastian Thierer <sebathi@gmail.com>
Since: 1.1.3
Located at x2engine/framework/zii/widgets/jui/CJuiButton.php
Methods summary
public
# init( )

(non-PHPdoc)

(non-PHPdoc)

See

framework/zii/widgets/jui/CJuiWidget::init()

Overrides

CJuiWidget::init()
public
# run( )

(non-PHPdoc)

(non-PHPdoc)

See

framework/CWidget::run()

Overrides

CWidget::run()
Methods inherited from CJuiInputWidget
hasModel(), resolveNameID()
Methods inherited from CJuiWidget
getScriptFile(), registerCoreScripts(), registerScriptFile(), resolvePackagePath(), setScriptFile()
Methods inherited from CWidget
__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties summary
public string $buttonType 'submit'
#

The button type (possible types: submit, button, link, radio, checkbox, buttonset). "submit" is used as default.

The button type (possible types: submit, button, link, radio, checkbox, buttonset). "submit" is used as default.

public string $htmlTag 'div'
#

The default html tag for the buttonset

The default html tag for the buttonset

public mixed $url null
#

a URL or an action route that can be used to create a URL. Used when a buttonType "link" is selected. See normalizeUrl for more details about how to specify this parameter.

a URL or an action route that can be used to create a URL. Used when a buttonType "link" is selected. See normalizeUrl for more details about how to specify this parameter.

public mixed $value
#

The value of the current item. Used only for "radio" and "checkbox"

The value of the current item. Used only for "radio" and "checkbox"

public string $caption ""
#

The button text

The button text

public string $onclick
#

The javascript function to be raised when this item is clicked (client event).

The javascript function to be raised when this item is clicked (client event).

Properties inherited from CJuiInputWidget
$attribute, $model, $name
Properties inherited from CJuiWidget
$_scriptFile, $cssFile, $htmlOptions, $options, $scriptUrl, $theme, $themeUrl
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
API documentation generated by ApiGen 2.8.0