Skip to content

Commit

Permalink
Add bindings for role and some aria- attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
renebock committed Nov 13, 2024
1 parent 11e2f35 commit b1f97cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Frameworks/Ajax/Ajax/Components/AjaxUpdateContainer.api
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
<binding defaults="Boolean" name="stopped"/>
<binding name="class"/>
<binding name="style"/>
<binding name="aria-relevant"/>
<binding name="aria-live"/>
<binding name="aria-atomic"/>
<binding name="aria-busy"/>
<binding name="role"/>
</wo>
</wodefinitions>
5 changes: 5 additions & 0 deletions Frameworks/Ajax/Ajax/Sources/er/ajax/AjaxUpdateContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ public void appendToResponse(WOResponse response, WOContext context) {
appendTagAttributeToResponse(response, "id", id);
appendTagAttributeToResponse(response, "class", valueForBinding("class", component));
appendTagAttributeToResponse(response, "style", valueForBinding("style", component));
appendTagAttributeToResponse(response, "aria-live", valueForBinding("aria-live", component));
appendTagAttributeToResponse(response, "aria-relevant", valueForBinding("aria-relevant", component));
appendTagAttributeToResponse(response, "aria-atomic", valueForBinding("aria-atomic", component));
appendTagAttributeToResponse(response, "aria-busy", valueForBinding("aria-busy", component));
appendTagAttributeToResponse(response, "role", valueForBinding("role", component));
appendTagAttributeToResponse(response, "data-updateUrl", AjaxUtils.ajaxComponentActionUrl(context));
// appendTagAttributeToResponse(response, "woElementID", context.elementID());
response.appendContentString(">");
Expand Down

0 comments on commit b1f97cd

Please sign in to comment.