JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Button disable inside form
Tagged: form component
- This topic has 2 replies, 2 voices, and was last updated 2 years, 4 months ago by
admin.
-
AuthorPosts
-
April 12, 2022 at 7:25 am #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>
April 12, 2022 at 8:44 am #103072Joko Pitoyo
ParticipantcontrolType=’group’ default is ‘smart-form-group smart-disabled’, howto make default enable?
April 12, 2022 at 10:09 am #103073admin
KeymasterHi Joko,
Could you share a codepen sample which shows the behavior which you experienced?
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts
- You must be logged in to reply to this topic.