I'm researching a little to implement a feature to make life easier when programming.
Is it possible to do this?
We're using VS2013 with razor .
I have the following class Less:
.minColuna(@a) {
-webkit-min-width: @a;
-moz-min-width: @a;
-ms-min-width: @a;
-o-min-width: @a;
min-width: @a;
}
And I can not call the method like this:
Razorcausesittobeunabletoidentify@aasavariableandbecauseofthatbuga.IalreadytrieddoingthisbyJSputtingtheclassonthetablebutitgavethesameproblem...AndI'vealreadytriedusingthis:
class="minColuna(@Html.Raw("@a"): 300px)"
But it does not take the style: /
Is it possible to work around this bug?
Or is there even something inside JQuery / JS / LESS / HTML that can do something like this for me?