Clear Up
SharpKit Reference

CheckboxConfig Class

Namespace: Ext.form.field

Constructors

Name Description
CheckboxConfig(Object[])

Fields

Name Description
afterBoxLabelTextTpl An optional string or XTemplate configuration to insert in the field markup after the box label text. If an XTemplate is used, the component's subTpl data serves as the context.
afterBoxLabelTpl An optional string or XTemplate configuration to insert in the field markup after the box label element. If an XTemplate is used, the component's subTpl data serves as the context.
beforeBoxLabelTextTpl An optional string or XTemplate configuration to insert in the field markup before the box label text. If an XTemplate is used, the component's subTpl data serves as the context.
beforeBoxLabelTpl An optional string or XTemplate configuration to insert in the field markup before the box label element. If an XTemplate is used, the component's subTpl data serves as the context.
boxLabel An optional text label that will appear next to the checkbox. Whether it appears before or after the checkbox is determined by the boxLabelAlign config.
boxLabelAlign The position relative to the checkbox where the boxLabel should appear. Recognized values are 'before' and 'after'. Defaults to: "after"
boxLabelAttrTpl An optional string or XTemplate configuration to insert in the field markup inside the box label element (as attributes). If an XTemplate is used, the component's subTpl data serves as the context.
boxLabelCls The CSS class to be applied to the boxLabel element Defaults to: "x-form-cb-label"
checked true if the checkbox should render initially checked Defaults to: false
checkedCls The CSS class added to the component's main element when it is in the checked state. Defaults to: "x-form-cb-checked"
handler A function called when the checked value changes (can be used instead of handling the change event).
inputValue The value that should go into the generated input element's value attribute and should be used as the parameter value when submitting as part of a form. Defaults to: "on"
scope An object to use as the scope ('this' reference) of the handler function. Defaults to this Checkbox.
uncheckedValue If configured, this will be submitted as the checkbox's value during form submit if the checkbox is unchecked. By default this is undefined, which results in nothing being submitted for the checkbox field when the form is submitted (the default behavior of HTML checkboxes).
© Copyright 2005-2011 SharpKit. All rights reserved.