Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #103071
    Joko Pitoyo
    Participant

    <div>
    <div> var wnd = document.createElement(‘smart-window’);</div>
    <div>    document.body.appendChild(wnd);</div>
    <div>    var form = document.createElement(‘smart-form’);</div>
    <div>    wnd.appendChild(form);</div>
    <div></div>
    <div>    wnd.style.padding = ’10px’;</div>
    <div>    form.style.width = ‘100%’;</div>
    <div>    form.style.height = ‘100%’;</div>
    <div>    form.controls = [{</div>
    <div>        controlType: ‘group’,</div>
    <div>        columns: 2,</div>
    <div>        controls: [{</div>
    <div>            controlType: ‘button’,</div>
    <div>            cssClass: ‘success’,</div>
    <div>            height: ’35px’,</div>
    <div>            label: ‘Save’,</div>
    <div>            disabled: false,</div>
    <div>            readonly: false</div>
    <div>        }, {</div>
    <div>            controlType: ‘button’,</div>
    <div>            cssClass: ‘error’,</div>
    <div>            height: 35,</div>
    <div>            label: ‘Close’,</div>
    <div>            disabled: false,</div>
    <div>            readonly: false</div>
    <div>        }]</div>
    <div>    }, {</div>
    <div>        dataField: ‘name’,</div>
    <div>        type: ‘input’,</div>
    <div>        label: ‘Name’,</div>
    <div>        value: prop.name</div>
    <div>    }, {</div>
    <div>        dataField: ‘descr’,</div>
    <div>        type: ‘input’,</div>
    <div>        label: ‘Keterangan’,</div>
    <div>        value: prop.descr</div>
    <div>    }, {</div>
    <div>        controlType: ‘boolean’,</div>
    <div>        dataField: ‘enter_alarm’,</div>
    <div>        type: ‘checkInput’,</div>
    <div>        label: ‘Notify Enter Geofence’,</div>
    <div>        value: prop.name</div>
    <div>    }, {</div>
    <div>        controlType: ‘boolean’,</div>
    <div>        dataField: ‘exit_alarm’,</div>
    <div>        type: ‘checkInput’,</div>
    <div>        label: ‘Notify Exit Geofence’,</div>
    <div>        value: prop.name</div>
    <div>    }]</div>
    </div>
    <div>wnd.open();</div>

    <div>why button with label ‘Save’ and ‘CLose’ always disable</div>

    #103072
    Joko Pitoyo
    Participant

    controlType=’group’ default is ‘smart-form-group smart-disabled’, howto make default enable?

    #103073
    admin
    Keymaster

    Hi Joko,

    Could you share a codepen sample which shows the behavior which you experienced?

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.