ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Button with custom class
Title:
B
I
{code}
?
I need to have some buttons with a different css style like this: @Html.Awe().Button().Text("Open popup").OnClick(Html.Awe().OpenPopup("InitPopCreateFilter")).CssClass("myclass") I see on debug this: <button onclick="awe.open('InitPopCreateFilter', {}, event)" type="button" class="awe-btn myclass"></button> myclass is append to default awe-btn, so if I have features in common for each I have to put `!important` in my opinion, if it is present CssClass the default awe-btn have to be removed
Save Changes
Cancel
Meccanica Rossi
asked at 18 Sep 2018
you need to put the css for `myclass` after the css for `awe-btn`, so reference `site.css` after `awesomemvc.css`
at 18 Sep 2018
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK