EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Right align Dojo placeholder

  • 1.  Right align Dojo placeholder

    Posted Wed February 24, 2016 09:44 AM

    Does anyone know how to right align the placeholder for a DojotextField?

    I use the placeholder to indicate to the user what the expected value type is. i.e. 0.00

    I have tried the css examples like

    ::-webkit-input-placeholder

    but have been unsuccessful.

     

    Rick

    RickGentner


  • 2.  Re: Right align Dojo placeholder

    Posted Thu February 25, 2016 03:31 AM

    Hi Rick,

    One way to right align the placeholder would be:

    Add this to your project's css file:

    div[id*="rightalignId"] span {        left:auto;        right:0px;}

    Then provide the DojoTextFields you want their placeholders to be right-aligned with an id containing the text "rightalignId".

    Like:

    dt1 DojoTextField{placeHolder = "Amount", id="rightalignId25"};

    Guus

     

     

     

     

    gweis