No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to disable items in an action sheet?

    Framework
    1
    1
    166
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paul last edited by

      Is it possible to disable one or more actions in an actionsheet?

      this.$q.actionSheet({
        title: 'Article Actions',
      
        // specify ONLY IF you want grid mode:
        grid: true,
      
        // optional; change dismiss label (only for iOS theme)
        dismissLabel: 'Quit',
      
        actions: [
          {
            label: 'Delete',
      
            // Optional
            color: 'negative',
      
            // Choose one of the following two:
            icon: 'delete', // specify ONLY IF using icon
            avatar: 'assets/some-avatar.png', // specify ONLY IF using avatar
      
            // optional; what to do when user chooses this action;
            // Can also be handled later by using the returned Promise
            // and identifying the action from "action" param
            handler () {
              console.log('Deleted Article')
            }
          },
      
          {}, // optional separator
      
          ...
        ]
      })
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post