Sha256: 24360b8a161010bc8ec2877f574ff173b0ba6b613cc59b55592ffbe1d7575230

Contents?: true

Size: 1.63 KB

Versions: 17

Compression:

Stored size: 1.63 KB

Contents

<div class="relative flex flex-col w-full sm:w-auto js-actions-dropdown"
  data-component-name="<%= self.class.to_s.underscore %>"
  data-controller="toggle actions-picker"
  data-actions-picker-enabled-class="text-black hover:bg-primary-500 hover:text-white"
  data-actions-picker-disabled-class="cursor-wait text-gray-500"
  data-resource-name="<%= @resource.class.to_s %>"
  <% if @resource.record.present? %> data-record-id="<%= @resource.record.id %>" <% end %>
>
  <%= a_button style: @style,
    type: :button,
    color: @color,
    size: size,
    class: "focus:outline-none",
    icon: @icon,
    'data-action': "click->toggle#togglePanel",
    'data-actions-dropdown-button': @resource.model_key do %>
    <%= label %>
  <% end %>
  <div
    class="absolute flex inset-auto xl:right-0 top-full bg-white w-full sm:w-auto sm:min-w-[300px] mt-2 z-40 shadow-modal rounded overflow-hidden hidden"
    data-toggle-target="panel"
    data-controller="actions-overflow"
    data-actions-overflow-panel-list-value="<%= !@as_row_control %>"
    data-actions-overflow-target="content"
    data-transition-enter="transition ease-out duration-100"
    data-transition-enter-start="transform opacity-0 -translate-y-1"
    data-transition-enter-end="transform opacity-100 translate-y-0"
    data-transition-leave="transition ease-in duration-75"
    data-transition-leave-start="transform opacity-100 translate-y-0"
    data-transition-leave-end="transform opacity-0 -translate-y-1"
  >
    <div data-target="actions-list" class="w-full space divide-y">
      <% actions.each do |action| %>
        <%= render_item(action)%>
      <% end %>
    </div>
  </div>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
avo-3.10.10 app/components/avo/actions_component.html.erb
avo-3.10.9 app/components/avo/actions_component.html.erb
avo-3.10.8 app/components/avo/actions_component.html.erb
avo-3.10.7 app/components/avo/actions_component.html.erb
avo-3.10.6 app/components/avo/actions_component.html.erb
avo-3.10.5 app/components/avo/actions_component.html.erb
avo-3.10.4 app/components/avo/actions_component.html.erb
avo-3.10.3 app/components/avo/actions_component.html.erb
avo-3.10.2 app/components/avo/actions_component.html.erb
avo-3.10.1 app/components/avo/actions_component.html.erb
avo-3.10.0 app/components/avo/actions_component.html.erb
avo-3.9.2 app/components/avo/actions_component.html.erb
avo-3.9.1 app/components/avo/actions_component.html.erb
avo-3.8.2 app/components/avo/actions_component.html.erb
avo-3.9.0 app/components/avo/actions_component.html.erb
avo-3.8.1 app/components/avo/actions_component.html.erb
avo-3.8.0 app/components/avo/actions_component.html.erb