openFullscreen
A useful function, but if a button is used to execute this, once in Fullscreen mode, the button is still there, but of course now effectively useless.
Is there a way to detect whether in Fullscreen mode or not, so the button can be hidden or displayed as appropriate?
6 replies
-
You can use a Yes/No field (let's say FULLSCREEN, i use a toggle slider) and put this in the trigger after update:
if FULLSCREEN then openFullscreen(this) else closeFullscreen() end
The setting 'Binding' should be 'Global variabele in memory (browser)'
-
Thanks, I'm doing something like that, but was hoping Ninox had a function to determine if in Fullscreen mode.
I have however come across a problem with using openFullscreen.
I have a large multiline text field into which I am writing some data and the button that does that ends with openFullscreen(…) to expand to fullscreen and show as much data in that field as possible. Works fine.
However, I have another button that clears that field and ends in closeFullscreen(), but which does not always work.
If I create the data and it expands and then I press the clear button, it closes as it should. If however I do anything else within that Fullscreen view, (like pressing the create button again), then when I press the clear button, it does clear the field, but does NOT close Fullscreen view. It seems that any other action while in Fullscreen mode makes Ninox forget it's in Fullscreen mode and so closeFullscreen() does nothing.
This is not a large or complicated table and the actions are simple, but as far as I can tell, Ninox is not working as it should. If in Fullscreen mode, then issuing the closeFullscreen() command MUST do that. It should not depend on what you did while in Fullscreen mode.
Bug?
Content aside
- 1 yr agoLast active
- 6Replies
- 170Views
-
3
Following