2109
Views
6
Comments
How to add div class,span class and ids in outsystems container
Question

Hi,

  I am quite new to Outsystems.How can i implement class and id of html tag in outsytems.

ex: <div class="eco-cropper-holder" id="ecoFeedbackHolder">

       <span class="eco-error_message"></span>

      </div>

I made a container and add class name as "eco-cropper-holder".But how to use the id="ecoFeedbackHolder" in that container and also how to add span class.

2025-01-09 14-56-57
IQ78

https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Look_and_Feel/Cascading_Style_Sheets_(CSS)

2020-02-28 09-46-54
Eduardo Jauch

Hello Biswanath,

If you are new to OutSystems, I recommend you to take the online training: https://www.outsystems.com/learn/courses/114/developing-web-apps-outsystems-11/?LearningPathId=2

There is a specific presentation that teaches how to apply styles to widgets (container included): https://www.outsystems.com/learn/lesson/1756/themes-and-styling/?LearningPathId=2

Regarding IDs, they are given dynamically by the platform, so you should avoid using them.

Cheers.

2019-04-18 15-23-21
Naina

BISWANATH PATI wrote:

Hi,

  I am quite new to Outsystems.How can i implement class and id of html tag in outsytems.

ex: <div class="eco-cropper-holder" id="ecoFeedbackHolder">

       <span class="eco-error_message"></span>

      </div>

I made a container and add class name as "eco-cropper-holder".But how to use the id="ecoFeedbackHolder" in that container and also how to add span class.


Hi Biswanath,

You can add Styling in extended property of the Container.


UserImage.jpg
BISWANATH PATI

Nandini T S wrote:

BISWANATH PATI wrote:

Hi,

  I am quite new to Outsystems.How can i implement class and id of html tag in outsytems.

ex: <div class="eco-cropper-holder" id="ecoFeedbackHolder">

       <span class="eco-error_message"></span>

      </div>

I made a container and add class name as "eco-cropper-holder".But how to use the id="ecoFeedbackHolder" in that container and also how to add span class.


Hi Biswanath,

You can add Styling in extended property of the Container.



Hi Nandini,


I have done like above.In Styles,i have mentioned the class name and its styles are written in the CSS editor.But my question is:can i mention the id name in the extended properties section as i have done above.And through that id,can i implement the javascript code.

2026-02-26 15-29-56
Bruno Schumacher

If you want to change tag in HTML, you can use extended properties with "OSTagName" and value "span".

2020-02-28 09-46-54
Eduardo Jauch

Hi Biswanath,

No. The "Id" you enter will be ignored by the platform.

You can give the Container a NAME, and use it to pass the Id for a JavaScript, for example:

And then in a RunJavaScript (just for example), you can use it:

Hope this helps.

Cheers.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.