Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.07k stars 4.96k forks source link

[API] meta data action is not being called and throwing an missingURL error #7090

Open iappa1 opened 1 year ago

iappa1 commented 1 year ago

I am using semantic UI API and when I specified the action in meta data it's giving me error: API : No URL specified for api event Basically, I am facing the same issue with a div element. <div class="dashboard-top cards-row js-list-fetch loading" data-action="get all items">

and defined global settings like

$.fn.api.settings.api = {
    "get all items": "/items"
}

and initialising like below don't work

$(".js-list-fetch").api({
        on: "now"
                 .....
});

but the following works

$(".js-list-fetch").api({
        on: "now",
                action: 'get all items'
                 .....
});

and when it don't work, it produces message like API : No URL specified for api event
Please help me resolve this.