Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #101818
    tullio0106
    Member

    In my application I assigned some css classes to my components.
    However when I assign it to a textbox (and also to a multilinetextbox, I suppose) is not inheridet by the underlying created input element.
    Then I’m not able to assign properties to such kind of elements.
    How can I solve ?
    Tks

    #101828
    yavordashew
    Member

    Hi tullio0106,
    First I would suggest you take a look at the CSS API for the input if you need to change the styles of the component(it also has for the texbox element):
    https://www.htmlelements.com/docs/input-css/
    And it will be better to explain your use case with a bit more detail about it in order to give a definite solution about it.
    However if you want select for styling a certain element inside of SmartInput for example you can do so like this:
    //in your HTML file:
    <smart-input class="input-class" placeholder="Empty"></smart-input>
    //in your CSS file:

     .input-class input{
        background-color: red;
       }
    

    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.