[openLuup] Multiple lines in variables
-
Thanks so much.
I'm starting to look at this as we speak...
...currently I have a resizable text box, but the current values don't appear!
Early days, but I"m sure I"ll need help.
-
Making some progress.
The down-side is, of course, that <RETURN> doesn't now complete entry of data, which is quite a change for the user experience.
Another problem I am running into is that the height of the box is not correctly adjusted for multi-line data, so you only see the first line.
I could put a version into the testing branch if necessary, for others to try out.
-
Making some progress.
The down-side is, of course, that <RETURN> doesn't now complete entry of data, which is quite a change for the user experience.
Another problem I am running into is that the height of the box is not correctly adjusted for multi-line data, so you only see the first line.
I could put a version into the testing branch if necessary, for others to try out.
@akbooer said in [openLuup] Multiple lines in variables:
The down-side is, of course, that <RETURN> doesn't now complete entry of data, which is quite a change for the user experience.
you could just save the value when the user loses the focus. just use the onblur event. it's similar to what the Vera's UI is doing and it's more intuitive. it'll work with inputs too.
Another problem I am running into is that the height of the box is not correctly adjusted for multi-line data, so you only see the first line.
you could use a CSS like this:
it'll need a special CSS class around the texarea and the onInput handler, but it will work.
-
I know a lot of development has gone in already, but just offering a thought... Bootstrap. Doing a Reactor that's not Vera, I'm liberated to use current versions of jQuery and Bootstrap, and bring in modern packages, and I feel like I've taken a unicorn ride over a rainbow to the gates of Nirvana.
Auto-sizing textareas, you don't even have to think about it.
-
I had investigated Bootstrap when I first expanded the console pages from being static HTML. I reconsidered when I bit the bullet and enhanced things with a CSS framework, choosing W3.CSS as fitting very well with the "less is more" philosophy of openLuup. The console pages were never meant to be a replacement for AltUI. It doesn't do asynchronous page updates with Ajax and XHTMLRequests, it's not very configurable, but it does its job (which is mostly to access bits of the system which AltUI can't or doesn't because it's not openLuup-specific.)
I'm currently investigating the use of a real web server (like Apache) for openLuup, with it running, essentially, as a CGI in the background. This might, then, be the time to consider something more fancy. The drive to keep it simple means there is (almost) no JavaScript, with everything done server-side, and I like that, and it's fast. But it does limit some fancy UI stuff. I'm not really a UI person, and it shows.
I'm all for plugins managing their own GUI requirements, and most people seem to get along with that. You can use what you like, as long as it doesn't need specific support from the system.
-
@akbooer
Just use thistextarea { height: 20px; min-height: 20px; max-height: 400px; width: 100%; min-width: 100%; max-width: 200px; }
Perfectly fine on Chrome.
Since you have size=28 on the input, just set <textarea cols="28" /> to have the same layout.
I'll probably just force both textarea and input with a special CSS style to have them stop at 200px with max-width. Height on the textarea is still resizable.
@therealdb said in [openLuup] Multiple lines in variables:
I'll probably just force both textarea and input with a special CSS style to have them stop at 200px with max-width. Height on the textarea is still resizable.
The latest openLuup development branch (20.11.17) has something for you to try.
-
While we're speaking of CSS framework, take a look at bulma. https://bulma.io/
I appreciate the fix. I'm using the console a lot lately, because it's easier to see things, mess around and refresh when necessary. I agree it's not a replacement for AltUI, but I see a future where AltUI it's not needed if you just want to run openLuup headless and use another UI over it.
I second the move to a proper HTTP web server, in order to increase its performance. Take a look at lighttpd, because as the name suggests, is a very light full featured and modular web server.