Replacement for SM_ALIGMENT

Forum to discuss the new web client version of Servoy.

Replacement for SM_ALIGMENT

Postby vik.lamp.vl » Thu Nov 28, 2024 10:54 am

Howdy,

do we have a replacement for SM_ALIGMENT, in particular in plugins.windows.createPopupMenu()?
I cant use the css-styleclass because my "header/title" menu has the same class as the "clickable" menus (.dropdown-menu)

Its just a tiny cosmetic thing but maybe some of you have a workaround for it.

Ty and have a nice day

-Vik

svyPopUpMenu.png
You do not have the required permissions to view the files attached to this post.
Servoy Developer
Head of Development at HV-Office & Hogatec.IT

Always interested in deeper Servoy-Knowledge so lets link up!
vik.lamp.vl
 
Posts: 48
Joined: Wed May 26, 2021 3:37 pm
Location: Germany

Re: Replacement for SM_ALIGMENT

Postby mboegem » Thu Nov 28, 2024 12:18 pm

vik.lamp.vl wrote:I cant use the css-styleclass because my "header/title" menu has the same class as the "clickable" menus (.dropdown-menu)


Hi Vik,

actually you can when adding the item in html, something like this:
Code: Select all
addMenuItem('<span class="my-item-class">Item 1</span>')


Then you can create a style class like this:
Code: Select all
.drowdown-item .my-item-class {
color: red;
}


The above shows the item in red, but you can replace that with the alignment/padding you need.

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1817
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Replacement for SM_ALIGMENT

Postby vik.lamp.vl » Thu Nov 28, 2024 12:36 pm

Hi Marc,

oh yeah thanks. That makes sense. I didnt even think about giving the menus a css style class.
I used <font> and <b> but wasnt thinking further :D

Thanks!
Servoy Developer
Head of Development at HV-Office & Hogatec.IT

Always interested in deeper Servoy-Knowledge so lets link up!
vik.lamp.vl
 
Posts: 48
Joined: Wed May 26, 2021 3:37 pm
Location: Germany


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests