Titled pane css settings

后端 未结 3 1650
Happy的楠姐
Happy的楠姐 2020-12-30 16:05

I wonder how to apply CSS settings to a TitledPane, but can\'t find any example

I would like to apply custom settings for TitledPane toolba

3条回答
  •  不思量自难忘°
    2020-12-30 16:14

    Only the following properties are available for titled pane( which include all labeled properties and font properties)

    extra properties

                -fx-animated     
                -fx-collapsible
    

    labeled properties

                -fx-alignment   
                -fx-text-alignment  
                -fx-text-overrun         
                -fx-wrap-text   
                -fx-font    
                -fx-underline    
                -fx-graphic          
                -fx-content-display          
                -fx-graphic-text-gap         
                -fx-label-padding        
                -fx-text-fill        
                -fx-ellipsis-strin
    

    font properties

                   -fx-font     
                   -fx-font-family       
                   -fx-font-size         
                   -fx-font-style    
                   -fx-font-weight       
    

提交回复
热议问题