POST
|
Using the dismissed property is the correct approach. Here is a codepen: https://codepen.io/benesri/pen/wvyBgZV?editors=1000
... View more
05-02-2022
03:06 PM
|
0
|
0
|
435
|
POST
|
I suggest using calcite-action. You can add your own image in the default slot. Here is a codepen: https://codepen.io/benesri/pen/yLvBwNN?editors=1010
... View more
04-29-2022
12:58 PM
|
0
|
0
|
1058
|
POST
|
@JeffBurka That is correct. "width-scale" is an attribute "widthScale" is a property Always use "width-scale" when setting the attribute in HTML. In JavaScript, you can use the widthScale property or the "width-scale" attribute with setAttribute: // these two lines do the same thing
document.querySelector("calcite-shell-panel").widthScale = "l";
document.querySelector("calcite-shell-panel").setAttribute("width-scale", "l"); This is a standard convention used throughout the web. Here is another example from MDN about data attributes: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes To get a data attribute through the dataset object, get the property by the part of the attribute name after data- (note that dashes are converted to camelCase) The convention applies to all of the camelCase properties in Calcite Components, as well as any native HTML elements (div, h1, ul, etc.) that have attributes with dashes (such as data attributes).
... View more
04-21-2022
01:22 PM
|
0
|
0
|
2039
|
POST
|
If you have a calcite-panel inside of a calcite-shell-panel, it is best to set them to the same widthScale. Here is a codepen demonstrating having the same and different widthScales: https://codepen.io/benesri/pen/PoEVOrx?editors=1000
... View more
04-19-2022
04:13 PM
|
2
|
2
|
2066
|
POST
|
Hi @N8-CORR, Felix's answer is correct, however it is still possible to create mobile-friendly apps with Calcite Components. At this time, you will have to use CSS to do it yourself. In the future, we plan to add CSS utility classes which will make the process easier. For reference, the Icon search is developed using calcite-shell, and it works on mobile.
... View more
04-18-2022
09:56 AM
|
0
|
0
|
774
|
POST
|
Here is a codepen that uses padding with an action bar: https://codepen.io/benesri/pen/XWVBMQm?editors=1010
... View more
04-11-2022
11:19 AM
|
2
|
0
|
430
|
POST
|
Hi @Mandalorian, MapView has a padding property which will do that. Here is a sample from the JavaScript API: https://developers.arcgis.com/javascript/latest/sample-code/view-padding/
... View more
04-11-2022
09:06 AM
|
0
|
1
|
456
|
POST
|
I suggest setting the "max-items" attribute, which will limit how many items are displayed at a time. That way the combobox menu won't be so long. <calcite-combobox max-items="10"> https://developers.arcgis.com/calcite-design-system/components/combobox/#component-api-properties-maxItems
... View more
04-07-2022
11:41 AM
|
0
|
0
|
584
|
POST
|
Using vertical height is better, so it is not dependent on your monitor size: style="height:100vh;"
... View more
04-06-2022
03:47 PM
|
0
|
1
|
1403
|
POST
|
If you prefer using setAttribute, then it should be like this: comboItem.setAttribute('value', items.value);
comboItem.setAttribute('text-label', items.label);
... View more
04-06-2022
03:11 PM
|
0
|
3
|
1411
|
POST
|
Hmm, can you provide a codepen that reproduces the issue? In your original code you were using "label" instead of "textLabel" for the prop. Maybe that's the issue? https://developers.arcgis.com/calcite-design-system/components/combobox-item/#component-api-properties-textLabel
... View more
04-06-2022
02:25 PM
|
0
|
5
|
1422
|
POST
|
Hi @LefterisKoumis, You need to create calcite-combobox-item components for each of the JSON entries, and then append them to the combobox. Here is a codepen: https://codepen.io/benesri/pen/zYpRpmp?editors=0010
... View more
04-05-2022
04:04 PM
|
0
|
7
|
1443
|
POST
|
Here is a codepen: https://codepen.io/benesri/pen/wvprVQd?editors=1010
... View more
04-01-2022
10:42 AM
|
0
|
0
|
1556
|
POST
|
The event's callback function doesn't need to be async in your code snippet. Also, the tab info is event.detail.tab. Here is the code: document.addEventListener("calciteTabChange", (event) => console.log(event.detail.tab));
... View more
04-01-2022
10:29 AM
|
0
|
1
|
1561
|
POST
|
calcite-label has a "layout" property for that: https://developers.arcgis.com/calcite-design-system/components/label/#component-api-properties-layout <calcite-label layout="inline">Enter Tolerance:
<calcite-input suffix-text="feet"></calcite-input>
</calcite-label>
... View more
03-31-2022
05:55 PM
|
0
|
0
|
820
|
Title | Kudos | Posted |
---|---|---|
1 | 12-22-2021 10:22 AM | |
1 | 01-19-2023 11:10 AM | |
1 | 08-30-2022 04:09 PM | |
2 | 08-22-2022 03:20 PM | |
1 | 08-22-2022 03:57 PM |
Online Status |
Offline
|
Date Last Visited |
02-03-2023
03:22 AM
|