Re Hans Duckwurst. The best I found was "...
Range Slider is rather good. Please give me an objective for its utility.
It would be useful if it could be adapted to set the various font and width sizes inside the configuration dialog.
.mystyle {
width: calc({{myvaluetiddler}}% * 1vw);
}
At points, you have to type blind because the screen becomes unreadable as you delete and replace digits. I actually have my own system, which allows you to use a scrollable select field and then save the key values for use on different platforms. (I should post that some time).
I've never noticed that calc before. That is cool. What does "* 1vw" do ? Multiply by Volkswagens?
.mystyle {
width: calc({{myvaluetiddler}}% * 1vw);
}
The specs for the range type of input element allow min and max values. It appears that the <$edit-text> widget doesn't pass those along. Maybe a future version could?
this.editRangeMin = this.getAttribute("min");
this.editRangeMax = this.getAttribute("max");
this.editRangeStep = this.getAttribute("step");
if(this.widget.editRangeMin) {
this.domNode.setAttribute("min",this.widget.editRangeMin);
}
if(this.widget.editRangeMax) {
this.domNode.setAttribute("max",this.widget.editRangeMax);
}
if(this.widget.editRangeStep) {
this.domNode.setAttribute("step",this.widget.editRangeStep);
}
To support use of these params in the <$edit-text> widget, all that is needed is to pass their values along to the underlying HTML input element.To do this, just two small *additions* to the core are needed:
PMario wrote:It seems your latest projects carry the Upgrade library around. ...THANK YOU SO MUCH MARIO!!!!!!!!!!
I've been really confused why things load and save so slowly for a few months now! I'll have to go back an correct all wikis I've made.
Thanks!
Thomas
From my perspective, tweaking the edit-text code is better, because Eric has already shown how to do that. Edit-text is going to continue to be complicated anyway -- no one is talking about rolling back any of its options.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f8c31e21-b75f-4262-92e9-6a24221f8fa4%40googlegroups.com.
I did make a very simple range slider widget that lets you set the min max and steps for the widget. It doesn't label the steps. It should work if you just need a range thing that gives you values from 1-10 instead of 1-100 though.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ad9898e0-a417-43c1-be35-cbbb9a641de1%40googlegroups.com.
$tw.utils.addEventListeners(this.inputDomNode,[
{name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"}
]);
with$tw.utils.addEventListeners(this.inputDomNode,[
{name: "input", handlerObject: this, handlerMethod: "handleChangeEvent"}
]);
then save and reload your wiki it may work.