row action to toggle slider?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Has anyone been able to toggle a slider from a row action? I'm trying a user experience different than opening a drawer, but want the slider info to execute from the row data
Photo of Ryan Faust

Ryan Faust

  • 904 Points 500 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Linda Gurtner

Linda Gurtner

  • 120 Points 100 badge 2x thumb
Hi Ryan

You can toggle a sliding panel from a row action. Just add a new row action, choose the action type "run multiple actions" and choose the action "toggle sliding panel". Add a component in the sliding panel (e.g. Field editor) and set that context of the component accordingly to only show information in the context of this row.

Here an example XML (don't forget to exchange the model):

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" useviewportmeta="true" showheader="true">
        <model id="AccountModel" limit="20" query="true" createrowifnonefound="false" datasource="salesforce" type="" sobject="Account">
                <field id="Id"/>
                <field id="Name"/>
                <field id="Industry"/>
        <skootable showconditions="true" showsavecancel="true" showerrorsinline="true" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" alwaysresetpagination="false" createrecords="true" model="AccountModel" buttonposition="" mode="read" allowcolumnreordering="true" responsive="true" uniqueid="sk-20oB0X-105">
                <field id="Id" hideable="true" uniqueid="fi-20oU6w-167"/>
                <field id="Name" hideable="true" uniqueid="fi-20oU6w-168"/>
                <field id="Industry" hideable="true" uniqueid="fi-20oU6w-169"/>
                <action type="edit"/>
                <action type="delete"/>
                <action type="multi" label="Run multiple actions" icon="sk-icon-transfer">
                        <action type="toggleSlidingPanel">
                            <panel title="Sliding Panel Contents" uniqueid="sk-20oH3m-128" size="270px" origin="right" closeonpageclick="true" behavior="overlay">
                                    <basicfieldeditor showheader="true" showsavecancel="true" showerrorsinline="true" model="AccountModel" buttonposition="" uniqueid="sk-20oImc-132" mode="read">
                                            <column width="100%">
                                                    <section title="Section A" collapsible="no">
                                                            <field uniqueid="sk-20oOit-150" id="Name"/>
                                                            <field uniqueid="sk-20oOit-151" id="Industry"/>
                                            <condition type="contextrow" field="Id" mergefield="Id"/>
            <massactions usefirstitemasdefault="true">
                <action type="massupdate"/>
                <action type="massdelete"/>
                <view type="standard"/>
        <styleitem type="background" bgtype="none"/>