Skip to main content

How can I change default values of built-in tools?

Changing default values to customize accordingly

Written by Danial A K Tareen

For this, you simply have to pass the specific property of a tool in your Unlayer Initiation code. Please follow our documentation, where each property is described in detail.

For example, if you want to change default color of button tool you have to use this:

unlayer.init({
tools: {
button: {
properties: {
buttonColors: {
value: {
color: "#FFFFFF",
backgroundColor: "#3AAEE0",
hoverColor: "#FFFFFF",
hoverBackgroundColor: "#3AAEE0"
}
}
}
}
}
});


Did this answer your question?