@boikom
@boikom
Forum Replies Created
-
AuthorPosts
-
adminKeymaster
1. Can you please show me the code where the forms are created on that Sample app? In the source code at the bottom of the page I can’t locate any smart-text-box or similar.
2. I know how to change the style. I just don’t understand why, by default, similar widgets (which usually are side by side in forms) have different styling.
3. Actually labels are listed among the features in the TextBox overview page. In any case, even if I don’t use labels and hints, the layout has some issues, as you can see in the next picture. I can’t figure out where that extra space after (or before?) some inputs comes from.
Any help to create that simple form is much appreciated.adminKeymasterHi PaoloBax,
1. The Sample app opens https://www.htmlelements.com/demos/dropdownlist/overview/. This is not a Fake form. This is a sample built with our web components.
2. Styling of the Web Components is done in smart.default.css. If you would like to put custom CSS, take it into account that such style could be already defined. In your case, to put custom Background of these Inputs, you should use something like that:smart-numeric-text-box .smart-input, smart-text-box .smart-input, smart-password-text-box .smart-input{ background:blue; }
3. Hints and Labels are not yet supported. We will add support for these in future versions of our web components. I would suggest you to take a look at the demos and how we use the components.
4. The roadmap is available here: https://www.htmlelements.com/docs/roadmap/
5. In general, this is an active project and we make frequent updates with bug fixes and new features.
Best Regards,
B. Markov
SmartHTMLElements
https://www.htmlelements.comadminKeymasterHi pcng618,
You can set the ‘headerPosition’ property to ‘none’. This will remove it. More info about the property: https://www.htmlelements.com/docs/window-api/
Regards,
B. Markov
SmartHTMLElements
https://www.htmlelements.comadminKeymasterThe linked example is empty. In any case I figured it out, thank you.
adminKeymasterThanks for writing and for the feedback. We will resolve the reported things.
The download currently includes a file that is combined from the files listed there. The individual files are included only in the commercial version.
To run the project you have to refer to smart.default.css and smart.elements.js and that’s all. Example: https://codepen.io/pen/?&editable=true Material is the default theme so you don’t need to set anything here. The quick usage examples are all included in the .zip.
Best Regards,
Boyko MarkovadminKeymasterHi hansT,
You can manipulate(update or remove) accordion’s arrows, via updating the settings of .smart-arrow CSS class.
To change arrows position in the header you have to update the order, for example order:0 will set the arrow at the beginning of the accordion item’s header block.
If you want to remove the arrow – use display: none ;
To change the arrow with a different icon you have to manipulate it’s ::after pseudo-element.
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi pcng618,
The accordion has animation property. This property can be set to:
– ‘advanced’ (by default) – animations are enabled and the element has ripple effect on click
– ‘simple’ – animations are enabled, but ripple effect is disabled
– ‘none’ – animations are disabled
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi hansT,
To do this, you can use a template. Custom templates can be set via tooltipTemplate property. In the template, you can set various HTML content, including progress bar elements.
Here is an example of how to do this:<template id="template"> <smart-progress-bar value="50"></smart-progress-bar> </template> <smart-button id="button">Button</smart-button> <smart-tooltip id="tooltip" selector="button" arrow tooltip-template="template"></smart-tooltip>
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHello hansT,
Here is how to set the width of the color ranges:<style type="text/css"> #needleGauge2 .jqx-range { width: 15px; } </style>
We hope this solution is helpful to you.
Best regards,
Dimitar
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi hansT,
To validate the user input this way, You have to use the following mask – “AA #### AA”(“A” matches A-Z letters, “#” matches digits).
Here is a snippet:
<smart-masked-text-box mask="AA #### AA"></smart-masked-text-box>
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi Michael20,
the open direction of the DropDownList custom element can be changed by setting the property dropDownPosition. There are several options available: ‘auto’, ‘top’, ‘bottom’, ‘overlay-top’, ‘overlay-center’, ‘overlay-bottom’, ‘center-bottom’, ‘center-top’. Check out the official API document for further details: API.
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterThis really helps, thanks.
Best regards,
MikeadminKeymasterThanks, Ivailo, it works!
Best regards,
MikeadminKeymasterHi Mike,
To do this, you just have to set element’s type property to “success”:
<smart-toast type="success">Successful operation!!!</smart-toast>
You can use several “type” options to style easily the element – “info”, “warning”, “success”, “error”, “mail”, “time”.
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.comadminKeymasterHi Michael20,
You can select an item in several ways:- If you are initializing items declaratively inside your web page, you can set the selected attribute to the desired List Item element.
- By setting the selectedIndexes or selectedValues properties to the correposnding value.
- By calling the select method. This method accepts one argument – a List Item element instnace. You can get a reference to it by calling the getter items on the Combo Box element and filter out the item you desire.
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com -
AuthorPosts