Method
__init__
(
self,
color: str = "blue",
icon_color: str = "white",
icon: str = "info-sign",
angle: int = 0,
prefix: str = "glyphicon",
**kwargs: TypeJsonValue,
)
Source from the content-addressed store, hash-verified
| 348 | } |
| 349 | |
| 350 | def __init__( |
| 351 | self, |
| 352 | color: str = "blue", |
| 353 | icon_color: str = "white", |
| 354 | icon: str = "info-sign", |
| 355 | angle: int = 0, |
| 356 | prefix: str = "glyphicon", |
| 357 | **kwargs: TypeJsonValue, |
| 358 | ): |
| 359 | super().__init__() |
| 360 | self._name = "Icon" |
| 361 | if color not in self.color_options: |
| 362 | warnings.warn( |
| 363 | f"color argument of Icon should be one of: {self.color_options}.", |
| 364 | stacklevel=2, |
| 365 | ) |
| 366 | self.options = remove_empty( |
| 367 | marker_color=color, |
| 368 | icon_color=icon_color, |
| 369 | icon=icon, |
| 370 | prefix=prefix, |
| 371 | extra_classes=f"fa-rotate-{angle}", |
| 372 | **kwargs, |
| 373 | ) |
| 374 | |
| 375 | |
| 376 | class Marker(MacroElement): |
Tested by
no test coverage detected