Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Alpine.js for MyBB
#1
It adds the required scripts for the Alpine.js library to your MyBB theme and enables you to use the Alpine.js magics that are not allowed by the MyBB 1.8 theme engine.

For all the details:

👉 https://community.mybb.com/mods.php?acti...w&pid=1538

Happy Coding!
Reply
#2
What can be done with this framework that cannot be done with jQuery? ( which mybb supports by default )

Web,Windows,Android Programmer
Wordpress,Mybb,... Developer

Reply
#3
Unlike jQuery, it allows you to create JS operations within HTML.

An example:

<div x-data="{ open: false }">
    <button @click="open = true">Expand</button>
 
    <span x-show="open">
      Content...
    </span>
</div>

For all: https://alpinejs.dev/
Reply
#4
you can do this with Jquery.

<script type="text/javascript">
$(document).ready(function() {
$("#elmid").on("click",function() {
......
});
});
</script>
<div id="elmid">
   ......
</div>




anyway good luck .

Web,Windows,Android Programmer
Wordpress,Mybb,... Developer

Reply
#5
What's happening? Are we competing with two different libraries? Anyone can use what they want. jQuery is old and cumbersome to me now. I love the innovation and the convenience it offers and wanted to share it for the MyBB community.
Reply
#6
(2023-02-12, 07:13 PM)tedem Wrote: What's happening? Are we competing with two different libraries? Anyone can use what they want. jQuery is old and cumbersome to me now. I love the innovation and the convenience it offers and wanted to share it for the MyBB community.

Yes, that's right, anyone can use anything they want . I just asked if it might have an advantage over jQuery.
I did not mean to offend you.

Web,Windows,Android Programmer
Wordpress,Mybb,... Developer

Reply
#7
Okey, sorry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)