Comments (3)
Hi Jonathan,
Thanks for your interest on the library.
I'm not sure I understand your question correctly.
You can use CSS properties to position the menu floating on the page, for example using the properties position:fixed
and width: 100%
. If you want it at the top, add: top: 0; left: 0
. At the bottom bottom: 0; left: 0
.
You can use style bindings with Vue.js to place the menu automatically depending of your application.
If you want to center the items of the menu, you can add spacers, like:
content: [
{ is: "spacer" },
{ text: "It is" },
{ text: "centered!" },
{ is: "spacer" }
]
Does it answer your question?
from vue-file-toolbar-menu.
For example, to automatically position the menu if you open it and it gets clipped by the viewport bounds, like: https://popper.js.org/
from vue-file-toolbar-menu.
Hmm ok I got it.
it would be nice to have an option to where you prefer the float menu to show: top, right, bottom, left.
For now you can set "align-left"(default), "align-center", or "align-right" to the menu_class
property of the menu element (see API.md)
You can also create your own CSS class to apply to the menu. What you are trying to achieve could work using CSS position: sticky
, but it needs some experiments (I did all positioning in simple CSS for this lib).
Otherwise it would be feasible in Javascript with popper.js, applying it to the menu elements using either the menu_id
properties, or document.querySelectorAll(...)
with the correct path.
from vue-file-toolbar-menu.
Related Issues (16)
- Question about your code HOT 5
- --bar-menu-min-width is not documented in the README HOT 1
- Color picker turned off once clicked HOT 1
- Default example is not center HOT 1
- Clicks don't not close menu HOT 2
- Disable still execute clicks? HOT 2
- Don't hardcode icons HOT 3
- Possibility to add ID HOT 2
- $listeners Vue3 HOT 3
- node-emoji error does not provide an export named 'default HOT 4
- Uncaught SyntaxError: The requested module '/node_modules/node-emoji/index.js?v=2bd32581' does not provide an export named 'default' HOT 17
- [@vue/compiler-sfc] ::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead. HOT 1
- Disable item dynamically HOT 3
- Teleport the dropdown menus in the body so we can use `overflow: auto` on the menu bar HOT 6
- Enable using dynamic components in menu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-file-toolbar-menu.