[INVALID] CheckBox BoxLabel?

  1. #1

    [INVALID] CheckBox BoxLabel?

    Are you going to support text beside a checkbox?

    Currently using:

    <ExtJS:Checkbox runat="server" FieldLabel="Word?" Checked="True" />
    Would expect it to render the check box with 'Word?' beside it.

    Cheers
  2. #2

    RE: [INVALID] CheckBox BoxLabel?

    Hi Timothy,

    The FieldLabel property is a feature that will get applied by default once the <ext:FormPanel> control has been built. I had kind of just put off implementing the label feature for use outside of a FormPanel, but I take another look later today and see if we can build it in. This would be a helpful feature to have across the board.

    Thanks for pointing out the missing functionality.
    Geoffrey McGill
    Founder
  3. #3

    RE: [INVALID] CheckBox BoxLabel?

    Would you have another recommendation for having text beside a checkbox field?

    Cheers
  4. #4

    RE: [INVALID] CheckBox BoxLabel?

    Hi Timothy,

    The following sample demonstrates a couple options for adding a Label to the Checkbox.

    http://sandbox.ext.net/Form/Checkbox/

    By default the Checkbox is a block-level element which will wrap any adjacent text onto the next line. By setting the x-form-check-wrap Css style to "display:none;", the Checkbox is forced into an inline element.

    Example

    <style type="text/css">
        .x-form-check-wrap { display: inline; }
    </style>
    The sample also demonstrate a couple techniques for adding a "Check" Listener to the Checkbox.

    Toolkit v0.5.3 or higher is required for the above sample.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Ext.net v2 Beta release: Checkbox BoxLabel property is
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 19, 2012, 1:01 PM
  2. [CLOSED] checkbox duplicate boxlabel
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Nov 02, 2011, 11:08 AM
  3. Set boxlabel of checkbox to the left side
    By wh0urdady in forum 1.x Help
    Replies: 0
    Last Post: Jun 14, 2010, 5:52 PM
  4. Replies: 1
    Last Post: Aug 07, 2009, 12:56 AM
  5. [CLOSED] Checkbox BoxLabel font different
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 8:15 AM

Posting Permissions