I would like to know if the modal widget can be loaded via code instead of from a button click.
In my case I want to launch the dialog from a fw-dropdown-button
So far this is what I have working:
<fw-button modal-trigger-id='large'> Open Large Modal </fw-button> <fw-modal id='large' onclick="Submit()" title-text="Change Start Date" description="Pick start date in future." size="large"> <input type="date" id="start_date" name="trip-start" value="2018-07-22"> </fw-modal>
I want to trigger it via code.