19 Dec 2022 1 minute to read
You can customize a Button into a Block Button that will span the entire width of its parent element. To create a Block Button, set the cssClass property to e-block
.
<ejs-button id= "blockbtn" content= "BLOCKBUTTON" cssClass= "e-block" ></ejs-button>
<ejs-button id= "primarybtn" content= "BLOCKBUTTON" cssClass= "e-block" isPrimary= "true" ></ejs-button>
<ejs-button id= "successbtn" content= "BLOCKBUTTON" cssClass= "e-block e-success" ></ejs-button>
<style>
button {
margin: 25px 0;
}
</style>
View Sample in GitHub .
Help us improve this page
Correct inaccurate or outdated content
Please provide additional information
Improve illustrations or images
Please provide additional information
Fix typos or broken links
Please provide additional information
Add more information
Please provide additional information
Correct inaccurate or outdated code samples
Please provide additional information
Other
Please provide additional information
I agree to the creation of a Syncfusion account in my name and to be contacted regarding this message. No further action will be taken. Please see our Privacy Policy.