@leanix/components 0.4.835 → 0.4.836
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -315,28 +315,24 @@ class ButtonComponent {
|
|
|
315
315
|
*/
|
|
316
316
|
this.disabled = false;
|
|
317
317
|
/**
|
|
318
|
-
* The icon
|
|
318
|
+
* The SAP icon to display inside the button.
|
|
319
319
|
* It is displayed before any additional content.
|
|
320
320
|
*
|
|
321
|
-
* An icon variant can be provided as well, e.g. `fas fa-trash`.
|
|
322
|
-
*
|
|
323
321
|
* @default undefined
|
|
324
322
|
* @example
|
|
325
|
-
* <button lx-button icon="
|
|
323
|
+
* <button lx-button icon="decline">Close</button>
|
|
326
324
|
*/
|
|
327
325
|
this.icon = input();
|
|
328
326
|
this.iconName = computed(() => this.getIconName(this.icon()));
|
|
329
327
|
this.iconVariant = computed(() => extractFontAwesomeVariant(this.icon()));
|
|
330
328
|
this.iconKind = computed(() => (isFontAwesomeIcon(this.iconName()) ? 'fa' : 'sap'));
|
|
331
329
|
/**
|
|
332
|
-
* The icon
|
|
330
|
+
* The SAP icon to display inside the button.
|
|
333
331
|
* It is displayed after any additional content.
|
|
334
332
|
*
|
|
335
|
-
* An icon variant can be provided as well, e.g. `fas fa-trash`.
|
|
336
|
-
*
|
|
337
333
|
* @default undefined
|
|
338
334
|
* @example
|
|
339
|
-
* <button lx-button endIcon="
|
|
335
|
+
* <button lx-button endIcon="decline">Close</button>
|
|
340
336
|
*/
|
|
341
337
|
this.endIcon = input();
|
|
342
338
|
this.endIconName = computed(() => this.getIconName(this.endIcon()));
|