- Jun 6, 2020
- 11,559
- 4,422
With the new Designer Script Extensions, Erel has given us Class Names for views similar to the B4j CSS class names.
For those wanting to use the actual CSS classes and styling in B4j, it is just as easy to add CSS class names to Nodes directly in the designer using the Designer Script Extensions.
This is a method to do just that. You can download the b4xlib and add that to your B4x additional libs folder, or just copy the method if you already have a Designer Script Extension class.
Usage in the Designer Script:
B4X:
You can also add more styleclasses and/or views in one go if you wish:
B4X:
DSE_CSSStyleClass:
For those wanting to use the actual CSS classes and styling in B4j, it is just as easy to add CSS class names to Nodes directly in the designer using the Designer Script Extensions.
This is a method to do just that. You can download the b4xlib and add that to your B4x additional libs folder, or just copy the method if you already have a Designer Script Extension class.
Usage in the Designer Script:
B4X:
DSE_CSSStyleClass.AddStyleClass("button-sl",Button1)
You can also add more styleclasses and/or views in one go if you wish:
B4X:
DSE_CSSStyleClass.AddStyleClass("button-sl, class-2",Button1,Button2,Button3)
DSE_CSSStyleClass:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید