Is it possible to open a popup using HTML, JS or CSS? I’d like to have an icon in my table open a popup when clicked, but I don’t want it as a row action… Any thoughts?
Solved
Custom Popup Opened from Table Cell

Best answer by matt.davis
Good news, this is another topic that seems to be often viewed but has been made much easier in V2. Now Tables have full access to the action framework on a field, so you can easily configure a Modal for a column. This even opens up the ability to do things like modify related data (Activate & Set a condition on another model, query the model, and show the fields in a Form on a Modal). It’s also worth noting that similar functionality is available on Forms. You can read more about it in our documentation on fields.
Here’s a small example
<skuid__page unsavedchangeswarning="yes" personalizationmode="server" showsidebar="false" showheader="false">
<models>
<model id="model" limit="20" query="true" createrowifnonefound="true" datasource="Ui-Only">
<fields>
<field id="first_name" displaytype="TEXT" length="255" label="First name" defaultvaluetype="fieldvalue" defaultValue="The"/>
<field id="last_name" displaytype="TEXT" length="255" label="Last Name" defaultvaluetype="fieldvalue" defaultValue="Doctor"/>
<field id="location" displaytype="TEXT" length="255" label="Location" defaultvaluetype="fieldvalue" defaultValue="tardis"/>
<field id="email" displaytype="TEXT" length="255" label="Email" defaultvaluetype="fieldvalue" defaultValue="doc@who.com"/>
<field id="company" displaytype="TEXT" length="255" label="Company" defaultvaluetype="fieldvalue" defaultValue="unaffiliated"/>
<field id="name" displaytype="FORMULA" length="255" label="Name" ogdisplaytype="TEXT" readonly="true" returntype="TEXT">
<formula>{{first_name}} + " " + {{last_name}}</formula>
</field>
</fields>
<conditions/>
<actions/>
</model>
</models>
<components>
<skuid__grid flexDirection="row" justifyContent="center" alignItems="flex-start" uniqueid="sk-3k3v-23733">
<divisions>
<division alignSelf="center" minWidth="100px" ratio="0">
<components>
<skuid__table allowColumnFreezing="dragDrop" model="model" allowHTML="false" uniqueid="sk-3k3m-19896" mode="readonly" showSaveCancel="false" title="People">
<fields>
<field id="name">
<interactions>
<interaction type="tap">
<action type="showModal">
<skuid__modal title="Edit {{name}}" width="640px" ariaRole="dialog">
<components>
<skuid__form showErrorsInline="true" model="model" uniqueid="sk-3k4J-32075" mode="edit">
<columns>
<column>
<sections>
<section title="New Section" showHeading="false">
<fields>
<skuid__field id="first_name" uniqueId="sk-3k4O-34479"/>
<skuid__field id="last_name" uniqueId="sk-3k4O-34497"/>
</fields>
</section>
</sections>
</column>
</columns>
</skuid__form>
</components>
</skuid__modal>
</action>
</interaction>
</interactions>
</field>
<field id="location" uniqueid="fi-3k3m-20643"/>
<field id="email" uniqueid="fi-3k3m-20644"/>
<field id="company" uniqueid="fi-3k3m-20645"/>
</fields>
<filtering enableSearch="false"/>
<actions/>
<rowActions/>
<massActions/>
<exportProperties useTableColumns="true"/>
<sorting enable="false"/>
<styles>
<spacing top="5" right="5" bottom="5" left="5"/>
</styles>
</skuid__table>
</components>
</division>
</divisions>
</skuid__grid>
</components>
<resources>
<labels/>
<javascript/>
<actionsequences/>
</resources>
<background/>
<interactions/>
<surfaces/>
</skuid__page>
Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.