Code Monkey home page Code Monkey logo

Comments (5)

Handsome2734 avatar Handsome2734 commented on August 15, 2024 1

@JosephusPaye Kinda tricky but it really works! Thanks!

from keen-ui.

 avatar commented on August 15, 2024

Don't know in navicon, but in actions is like this

<ui-icon-button
                type = "clear"
                color = "black"
                icon = "person_outline"
                has-dropdown-menu
                :menu-options = "[ {id:'1', text: 'Settings'} ]"
                dropdown-position = "bottom right"
                open-dropdown-on = "hover"
                >

from keen-ui.

JosephusPaye avatar JosephusPaye commented on August 15, 2024

Currently it's not possible to add a menu to UiToolbar's default navicon. However, you can use the brand slot to add a UiIconButton which contains a dropdown.

Example:

<ui-toolbar show-brand hide-nav-icon :show-brand-divider="false">
    <div slot="brand">
        <ui-icon-button type="clear" color="black" icon="menu" has-dropdown-menu :menu-options="menu" dropdown-position="bottom left"></ui-icon-button>
    </div>
</ui-toolbar>

See a demo here

from keen-ui.

JosephusPaye avatar JosephusPaye commented on August 15, 2024

Glad it helped. Closing this issue for now.

from keen-ui.

murbanowicz avatar murbanowicz commented on August 15, 2024

@JosephusPaye so basically the default menu icon in toolbar is useless ? Are you going to do something with that?

from keen-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.