1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2
    Vote Rating
    0
    bimargulies is on a distinguished road

      0  

    Default Answered: My checkboxes don't render as checkboxes

    Answered: My checkboxes don't render as checkboxes


    The following code sets up a form with nothing in it but a checkbox group.

    Code:
    Ext.define('WD40.view.Legend', {
        extend: 'Ext.panel.Panel',
        alias: 'widget.wd40legend',
        layout: 'vbox',
        items: [
             {
                xtype: 'form',
                width: '100%',
                id: 'documentLanguageTable',
                title: "Language",
                items: [ {
                    xtype: 'checkboxgroup',
                    columns: 1,
                    vertical: true,
                    id: 'documentLanguageCheckboxes'
                }]
            }
        ]
    Later, I add checkbox items with .add. Each checkbox item is rendered as a div with no checkbox element in it.

    Code:
    <div class="x-panel x-panel-default" id="lang-check-SPANISH" style="width: 169px; height: 2px; ">
      <div id="lang-check-SPANISH-body" class="x-panel-body x-panel-body-default x-panel-body-default" style="width: 169px; left: 0px; top: 0px; height: 2px; ">
       <div id="lang-check-SPANISH-clearEl" class="x-clear" role="presentation">
      </div></div></div>
    The code to add the items looks like:

    Code:
    langTable.add([
                        {   boxLabel  : langName + " (" + langData.count + ")",
                            name      : langName,
                            id        : 'lang-check-' + langName
                        }
                    ]);
    What do I need to do to actually get some checkboxes?

  2. The code above added the checkboxes as siblings of the group, not children.

  3. #2
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2
    Vote Rating
    0
    bimargulies is on a distinguished road

      0  

    Default oops

    oops


    The code above added the checkboxes as siblings of the group, not children.

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar