Official Content

Sets the class to style a control when it has the focus.

Syntax

control. gx-focused-class

gx-focused-class: <name_of_class>;

Scope

Generators: .NET, .NET Framework, Android, Apple, Java, Angular
Level: Design System Style Class

Description

By setting the gx-focused-class property you can obtain the same result as by setting all these others:

gx-attribute-focused-class
gx-button-focused-class
gx-image-focused-class
gx-textblock-focused-class
gx-tabpage-focused-class

Runtime/Design time

This property applies only at design time.

Samples

This definition:

.SpecialClass 
{ 
    gx-focused-class: classA; 
}

Is equivalent to this one:

.SpecialClass 
{ 
   gx-attribute-focused-class: classA;
   gx-button-focused-class: classA;
   gx-image-focused-class: classA;
   gx-textblock-focused-class: classA;
   gx-tabpage-focused-class: classA; 
}

GeneXus ensures that a class using gx-focused-class works on all platforms and on all the controls listed below.

Note: Once defined, the .SpecialClass can be assigned as a class of these controls: Button, Text Block, Attribute, Image, Tab.

See Also

DSO properties that begin with gx- and end with class

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant