Got something cool to share with AppGini users? Feel free to post it here!
-
jsetzer
- AppGini Super Hero
- Posts: 1814
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2020-02-22 12:14
Hi,
if you want to have icons before username and password, have a look here:
Result
- LpjodKmUVR.png (6.44 KiB) Viewed 36175 times
Copy&Paste-Code
Code: Select all
<!-- file: hooks/header-extras.php -->
<script>
prependIcons();
function prependIcons() { $j(function() { prependIcon('username', 'user'); prependIcon('password', 'lock'); }); }
function prependIcon(name, icon = "cog") { var f = $j("#" + name); var fg = f.closest(".form-group"); fg.prepend(jQuery('<div class="input-group"/>').prepend($j('<div class="input-group-addon">').append($j("<i/>").addClass('glyphicon glyphicon-' + icon))).append(f)); fg.prepend($j('label[for="' + name + '"]')); }
</script>
Default without icons
- ImK73sv9lf.png (6.23 KiB) Viewed 36175 times
Best,
Jan
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
D Oliveira
- AppGini Super Hero
- Posts: 347
- Joined: 2018-03-04 09:30
- Location: David
Post
by D Oliveira » 2020-02-22 17:27
nice touch
implemented! thank you jan
-
kerelov
- Veteran Member
- Posts: 42
- Joined: 2020-04-17 21:20
- Location: Bulgaria
Post
by kerelov » 2020-04-25 22:39
Very good!
-
jsetzer
- AppGini Super Hero
- Posts: 1814
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2020-04-27 04:03
Thank you!
PS: next version (April 2020) of AppGini Helper JavaScript Library will contain a single function call for this:
new AppGiniLoginView().fix();
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
sathukorala
- AppGini Super Hero
- Posts: 121
- Joined: 2020-02-16 16:29
Post
by sathukorala » 2020-05-03 01:07
When can we have the next version (April 2020) of AppGini Helper JavaScript Library?
-
jsetzer
- AppGini Super Hero
- Posts: 1814
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2020-05-03 05:31
viewtopic.php?f=13&t=3329#p13261
April-2020 release is available for download since last Thursday, April 30th.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
sathukorala
- AppGini Super Hero
- Posts: 121
- Joined: 2020-02-16 16:29
Post
by sathukorala » 2020-05-03 09:20
Thanks, Jan. When will we see the documentation updated for the new release?
-
sathukorala
- AppGini Super Hero
- Posts: 121
- Joined: 2020-02-16 16:29
Post
by sathukorala » 2020-05-03 09:25
jsetzer wrote: ↑2020-04-27 04:03
Thank you!
PS: next version (April 2020) of AppGini Helper JavaScript Library will contain a single function call for this:
new AppGiniLoginView().fix();
The single function has an alignment bug it seems. Long code is fine only the single function call
-
jsetzer
- AppGini Super Hero
- Posts: 1814
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2020-05-03 12:57
I am going to have a look on Monday
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools
-
jsetzer
- AppGini Super Hero
- Posts: 1814
- Joined: 2018-07-06 06:03
- Location: Kiel, Germany
-
Contact:
Post
by jsetzer » 2020-05-03 15:22
sathukorala wrote: ↑2020-05-03 09:25
The single function has an alignment bug it seems. Long code is fine only the single function call
Hi,
- Could you please tell us what alignment bugs you see
- It would be helpful if your bugreports would contain screenshots and some more information
- Always ensure your browser has loaded latest version and not cached outdated version of JS and CSS
- Always ensure that there is no other javascript bug which stops execution of code
This code works in testing environment with latest version 2020-04 of AppGini Helper Javascript Library and I cannot see any alignment problem:
Code: Select all
<!-- file: hooks/header-extras.php -->
<!-- ... your includes ... -->
<script>
new AppGiniLoginView().fix();
</script>
With fix
- chrome_gyiw3mWUF5.png (86.88 KiB) Viewed 32913 times
Default without fix
- Zhydug2BGo.png (140.28 KiB) Viewed 32913 times
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readability
AppGini 24.10 Revision 1579 + all AppGini Helper tools