@tbettinazziaxioma-it
@tbettinazziaxioma-it
Forum Replies Created
-
AuthorPosts
-
tbettinazzi@axioma.itParticipant
Elegant solution but it doesn’t fit completely in my environment.
I know if a tooltip should contain a break line if in the text I’ve a placeholder (#br#).
Then I need to change it in a<br/>.
In every tooltip where is present (I don’t know how many tooltip I’ve).
Tks
Tullio
tbettinazzi@axioma.itParticipantNo suggestions ?
Tks
tbettinazzi@axioma.itParticipantIn other situation I used css classes but with smart-tooltip I wasn’t able to find a suitable class.
Tks
tbettinazzi@axioma.itParticipantTestcase sent.
Tks
tbettinazzi@axioma.itParticipantTks for your help.
Just a few questions :
- also DropDownList has a virtualized property, why did You suggest ListBox in spite of DropDownList ?
- are there drawback using virtualized propery (eg. filter don’t work or any other feature missnig) ?
Tks
Tullio
tbettinazzi@axioma.itParticipantSent.
Tks
tbettinazzi@axioma.itParticipantI created a testcase to reproduce the problem.
Is quite huge because I copied it from my real world.
Please provide me a way to send You the code.
Not all the code is needed but if I can’t clean up the unneeded parts.
The examples shows that the page buid up time is quite long (6 seconds) and it depends entierely from a large dropdown list.
Please suggest a solution to improve significantely the response time.
Tks
- This reply was modified 2 years, 2 months ago by tbettinazzi@axioma.it.
tbettinazzi@axioma.itParticipantTks for the example.
In the example, however, I don’t see, how to put the progressbar in a modal layer and how to stop ane eliminate it at the end of the loadinbg process.
Tks again
Tullio
tbettinazzi@axioma.itParticipantI already use dataSource but it seems a little better but is stil slow more than standard html select.
Tks
- This reply was modified 2 years, 2 months ago by tbettinazzi@axioma.it.
- This reply was modified 2 years, 2 months ago by tbettinazzi@axioma.it.
tbettinazzi@axioma.itParticipantMy problem is that when the dropdown has many elements (> 500) it’s slow (more than 1 sec to show).
I hoped that a simpler element like smart input was faster.
Isn’t it ?
Tks
tbettinazzi@axioma.itParticipantUnfortunately I can’t because my page is generated at runtime and I don’t know which kind of elements are in that page.
Anyway I did it in a simple testcase I created and it doesn’t change the page building time.
On the other hand the js file are cached and the loading time of the js doesn’t seem to be a problem.
Tks
tbettinazzi@axioma.itParticipantTested Your suggestion which improves the result from more thn 2 secs to 1.5 secs.
However is still quite long time when I’ve more than a dropdown list in my page.
Is there any way to improve further the performances ?
Tks
tbettinazzi@axioma.itParticipantWill that issue be resolved in the next release ?
Tks
tbettinazzi@axioma.itParticipantI reproduced at least aprtially the problem on Your example (but I was not able to save it).
I simply added a new class.
This is the modified css
html, body { padding: 10px; }
.bg-red .smart-list-item-container {
background-color: red;
}smart-drop-down-list {
min-height: 35px;
height: auto;
width: 300px;
}
.elemento_list_item {
height: 20px;
}.elemento_list_item .smart-content {
height: 20px;
}And this is the modified js
window.onload = () => {
const dropDownList = document.querySelector(‘smart-drop-down-list’);
dropDownList.dataSource = [
{ label: “WAM ROMANIA”, value: “AF”, class: ‘bg-red’ },
{ label: “WAM PRODUCT”, value: “AA” }
]dropDownList.dataSource.forEach(element => {
const item = dropDownList.getItem(element.value)
console.log(item);
item.classList.add(“elemento_list_item”);
item.classList.add(element.class);
});}
Tks
- This reply was modified 2 years, 3 months ago by tbettinazzi@axioma.it.
tbettinazzi@axioma.itParticipantTks, more or less solved.
I still have a problem, when the dropdown list opens I see the following effects :
- all elements have the correct height (setted by a class) but the last one which is larger (eg 50px vs 20px)
- down of the last element I’ve a lot of white space (more or less 50px)
Here my css definitions :
smart-drop-down-list {
min-height: 35px;
height: auto;
}.smart-list-item-container img {
width: 100%;
height: 100%;
}smart-list-item .smart-content,
smart-list-item .smart-overlay,
smart-list-item,
smart-drop-down-list {
height: 100px;
}.smart-list-item-container .image-description {
display: block;
position: absolute;
z-index: 99999;
top: 0;
left: 70%;
}I can provide You a printScreen of the noisy effects.
Tks
- This reply was modified 2 years, 3 months ago by tbettinazzi@axioma.it.
- This reply was modified 2 years, 3 months ago by tbettinazzi@axioma.it.
-
AuthorPosts