Comments (4)
You can change the title in collapserTitle. I would also like to know how to change the text to an image.
from slimmenu.
Has anyone found out how to add an image to the collapsed menu?
from slimmenu.
@rawmeat69 have you found a solution?
from slimmenu.
@rawmeat69 @erikbjarnason
This can be achieved by changing the collapserTitle while initiating the script. It allows you to place any HTML you'd like to be displayed in place of the default title.
Here's a quick example.
<script>
$('.slimmenu').slimmenu(
{
resizeWidth: '750',
collapserTitle: '<img src="your-logo.png" alt="Company Logo" />',
animSpeed:'medium',
});
</script>
from slimmenu.
Related Issues (20)
- How to set slimmenu work only small screen size? HOT 4
- Sub menu won't open/dropdown after I have resized the window smaller or larger HOT 2
- Selected State
- Change collapse button when menu is opened? HOT 6
- not working in edge HOT 1
- How To Create Mega Menu?
- want my slimmenu menu items to have uniform width HOT 1
- Auto collapse after tap? HOT 1
- Selectors for Wordpress Menu
- Can we clone already existing menu with selector?
- SlimMenu / ReactJS
- Remove styling from SCSS sheet
- Ability to assign a different mobile button
- How to destroy Slimmenu / Problem with re-rendering HOT 1
- Open only one sub-menu at a time
- Submenu showing gap
- Submenu Dejaron de funcionar
- Submenu contents overflow to the right of the screen
- slimmenu js file trigger the resize function in custom.js file
- Doesn't work using jQuery 3
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 slimmenu.