Content deleted Content added
m tweak |
add dropdown |
||
Line 92:
);
};
// Handler options, see {{EFFP}}
EFFPRH.responseOptions = [
{ id: 'none', label: 'Nothing' },
{ id: 'notdone', label: 'Not done' }
];
/**
Line 105 ⟶ 111:
const handlerApp = {
components: {
WvuiButton: wvui.WvuiButton,
WvuiDropdown: wvui.WvuiDropdown
},
data: function () {
return {
reporterName: reporterName,
sectionNum: sectionNum,
responseOptions: EFFPRH.responseOptions,
selectedResponse: ''
};
},
Line 131 ⟶ 140:
template: `
<div class="script-EFFPRH-handler">
<p>Section {{ sectionNum }} for report by {{ reporterName }}. Selected response: {{ selectedResponse }}.</p>
<wvui-dropdown v-model="selectedResponse" :items="responseOptions" defaultLabel="Selection response" />
<wvui-button type="primary" action="progressive" v-on:click="submitHandler">Submit</wvui-button>
<wvui-button type="primary" action="destructive" v-on:click="cancelHandler">Cancel</wvui-button>
|