Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::MaterialIcon.
A Google Material Icon, which includes over 2500+ options.
For example, to display a checkbox icon with customized weight and grade, write the following:
{
"name": "check_box",
"fill": true,
"weight": 300,
"grade": -25
}
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#fill
def fill() -> ::Boolean
-
(::Boolean) — Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
#fill=
def fill=(value) -> ::Boolean
-
value (::Boolean) — Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
-
(::Boolean) — Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
#grade
def grade() -> ::Integer
-
(::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more
granular than adjustments to weight and have a small impact on the size of
the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If
any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
#grade=
def grade=(value) -> ::Integer
-
value (::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more
granular than adjustments to weight and have a small impact on the size of
the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If
any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
-
(::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more
granular than adjustments to weight and have a small impact on the size of
the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If
any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
#name
def name() -> ::String
-
(::String) — The icon name defined in the Google Material
Icon, for example,
check_box
. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.
#name=
def name=(value) -> ::String
-
value (::String) — The icon name defined in the Google Material
Icon, for example,
check_box
. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.
-
(::String) — The icon name defined in the Google Material
Icon, for example,
check_box
. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.
#weight
def weight() -> ::Integer
-
(::Integer) — The stroke weight of the icon. Choose from 200, 300, 400,
500, 600, 700. If absent, default value is 400. If any other value is
specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
#weight=
def weight=(value) -> ::Integer
-
value (::Integer) — The stroke weight of the icon. Choose from 200, 300, 400,
500, 600, 700. If absent, default value is 400. If any other value is
specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
-
(::Integer) — The stroke weight of the icon. Choose from 200, 300, 400,
500, 600, 700. If absent, default value is 400. If any other value is
specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.