Questions tagged [alloy-ui]

Alloy is a UI metaframework that provides a consistent and simple API for building web applications across all three levels of the browser: structure, style and behaviour.

Filter by
Sorted by
Tagged with
1 vote
1 answer
291 views

Loading and running js and activate a trigger in Liferay 7

I want to load a script and after executing this script launch a trigger. Formerly we did it with jquery and now we go to Alloyui. I'm trying to do this in Liferay 7 with AlloyUI. But I can't find the ...
NoSe's user avatar
  • 109
0 votes
1 answer
68 views

Alloy API throws a Null when executing alloy command

I have been using the Alloy API which can be written in Java. My goal is to compile Alloy model, display it visually, and narrow down the search for instances. At this time, I need to command the ...
p4mera's user avatar
  • 1
1 vote
1 answer
91 views

How to enable a checkbox using AUI script

This is the code to get the value of a checkbox var email = A.one("#<portlet:namespace/>email").attr('checked'); What is the code to set/enable the checkbox with a tick ? ...
user9718914's user avatar
0 votes
1 answer
27 views

HOw to check range in alloy language?

I have to generate an als script that will check the range like 10.0.0.0 – 10.255.255.255. Is there any way to do this?
brintodibyendu's user avatar
1 vote
1 answer
68 views

AlloYUI: aui datepicker with showNextYear and showPreviousYear buttons?

I'm using alloYUI datepicker. I can show next/prev month button, but I would like to show also the next/prev YEAR button. Otherwise it will be useless for most uses where selection is required ...
Glasnhost's user avatar
  • 1,023
0 votes
0 answers
332 views

Is there any way to have a datetime input in Liferay Alloy UI?

According to the docs you can have a date input type: https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/building-forms-with-aui-tags But is there any way to have an input type with ...
guillefix's user avatar
  • 934
0 votes
1 answer
54 views

Titanium Alloy ImageView from applicationDataDirectory

I am developing an app that needs to function in an offline mode. The app has a shop for which I have to download and store product images. In the 'shop view' I have a collection of products in a ...
Chris's user avatar
  • 419
1 vote
2 answers
132 views

how can I get var in the script function?

I want to get in js function value. how can i get them? I use html and javascript and alloy-ui I test in chrome developer console. staY.diagrambuilder or staY.Y or make function name. <script>...
user9041996's user avatar
1 vote
1 answer
113 views

Little trouble customizing and saving Diagram Builder in AlloyUI 3.03

Can u help me customizing node and relative css of AllouUI DiagramBuilder ? After a few attempts and thanks above all to the help of the previous posts on the same tool AlloyUI (diagram-builder) ...
Bestemmiolino's user avatar
0 votes
1 answer
6k views

Multiple date picker javascript

I want to create an input form to allow a user to add the monthly recurring item in my application. The user can pick multiple dates from the month. After I googling I found AlloyUi datepicker using ...
Muhammad Dyas Yaskur's user avatar
1 vote
0 answers
335 views

Liferay/AlloyUI: Overriding util.js or disabling scrolling on form focus

How can I override (or hook) the function Liferay.Util.focusFormField in Liferay 7.0? The method is defined in frontend-js-aui-web (portal-src\modules\apps\foundation\frontend-js\frontend-js-aui-web\...
Manticore's user avatar
  • 1,284
0 votes
1 answer
212 views

aui datatable sortable select rows

I'm using the aui library to make a sortable datatable. I would like the cells to be selectable (normally, plain text, no javascript event binding). With columns defined as var columns = [ { ...
geco17's user avatar
  • 5,162
1 vote
1 answer
552 views

Detecting when a schedule item has moved with AlloyUI Scheduler

I'm new to using the AlloyUI Scheduler. I have found how to display an alert if a item is saved, edited or deleted but I can't seem to find out how to show an alert if the item is moved, ie moved to ...
Matt's user avatar
  • 215
0 votes
1 answer
104 views

Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday?

I'am using alloyui scheduler and weekview. I want to show from monday to sunday, not sunday to saturday. Is it possible to set first day of alloy-ui scheduler weekview to monday insted sunday? I want ...
Niru's user avatar
  • 221
0 votes
0 answers
160 views

How to set alloy-ui scheduler event maximum timeout

I am using alloy-ui scheduler, I want when the event input popup is appeared it show default time slot max 30 minutes ( like: 12:00 to 12:30, 12:30 to 1:00) but right now it is showing with 1 hour ( ...
Ragini Khanna's user avatar
1 vote
0 answers
58 views

How to use HTML DOM elemets in alloyui dataTable

I want to show DOM elements in alloyui dataTable. but the alloyui table does not show the DOM elements. My code is as following: var tableData = []; this._popupContent.innerHTML = ""; ...
mohammad fatemi's user avatar
1 vote
2 answers
402 views

alloyui scheduler drag event

I looked at other posts and I see how to get edit, change, delete events from SchedulerEventRecorder. One thing i cant find is how to listen for drag events? I dont seem to be bale to find any docs on ...
Alex2436's user avatar
0 votes
0 answers
200 views

Alloy UI - editing an event with values selected (in selectlist)

I might have gone a wrong way around this but I have managed to get 2 selectlist options visible on my calendar popup and am able to save the data to the DB. Where I am struggling now is when ...
PHPology's user avatar
  • 1,017
3 votes
1 answer
3k views

How to make AUI validation apply only when a check box is selected?

I have fields in an aui form that I only want to be required when a corresponding checkbox is selected, otherwise they're not required. I'll enable these input fields using <aui:script> once the ...
Ravi R's user avatar
  • 73
2 votes
1 answer
742 views

How to localize the alloyui scheduler component?

I am trying to fully localize the alloyui scheduler in French. Following this article: How can I get a localized version of a YUI 3 or AlloyUI component? the job is almost done. However I am still ...
vincent's user avatar
  • 23
0 votes
1 answer
1k views

How to embed a portlet in an in-page popup in Liferay 7 [duplicate]

From JavaScript, I need to create an in-page (DIV-based?) popup that shows a particular portlet. This looks exactly like what I need: https://web.liferay.com/community/wiki/-/wiki/Main/Using+Pop-up+...
Nicolas Raoul's user avatar
0 votes
2 answers
248 views

AlloyUI Ace-Editor Theme Change

I am not able to find a way to change the Ace-Editor that is built into the AllouUI widget. The example below is what I would like to achieve with the theme attribute. YUI().use( 'aui-ace-...
Kristopher Jock Reed's user avatar
1 vote
1 answer
815 views

How to add link to images of AUI carousel

Using AUI carousel in liferay DXP (v 3.0). Liferay DXP uses AUI version 3.0 on each image it has redirect to different url. For following demo code redirection is not working <html> <head>...
Sagar Ravikirti's user avatar
0 votes
1 answer
149 views

Liferay ajax is loading the wrong view

I'm having issues setting up an ajax call in Liferay. In my View.jsp, I have: <portlet:actionURL name="action" var="action" /> AUI().ready(function(A) { A.use('.button').on('click',...
ContextSwitch's user avatar
0 votes
2 answers
407 views

Saving day, date and start and end time in database after saving, editing or deleting in AlloyUI Scheduler

How do I save endDate, startDate and the time into my database after saving and editing on Alloy UI Scheduler? At the moment, I am only able to save "content" Here is my code. var eventRecorder ...
8xpand Technologies's user avatar
0 votes
1 answer
590 views

Alloyui Ace editor read and write file

How read and write html or php file using ace editor ( alloyoui ), in the example i just get value to edit not from file and i have done to see the documentation but not get how read and write code ...
Riski Febriansyah's user avatar
1 vote
1 answer
305 views

How create yui_patched id using click jquery

How generate new "id='yui_patched_v3_18_1_1_1493708066807_175'" using click button thanks
Riski Febriansyah's user avatar
1 vote
1 answer
166 views

How to use getUpdatedSchedulerEvent in the scheduler of alloyui

I'm new of alloyui. I'm currently using alloyui for defining a simple scheduler view. When I'm reading the alloyui's api doc, I'm very confused about how to use the function getUpdatedSchedulerEvent. ...
JoshuaW1990's user avatar
0 votes
1 answer
128 views

AlloyUI (diagram-builder) extends

I'm trying to customise diagram builder, I created new type of node and trying to add custom attributes with custom editor. I just extend from dropdownCellEditor and it already doesn't work (editor ...
Alex Kapustin's user avatar
0 votes
1 answer
633 views

Get events from AlloyUI Scheduler

Im trying to get the events from the Scheduler but cant seem to do so. By looking at their documentation I found that I needed to implement SchedulerEventSupport. I implemented it like this: ...
Abdul Mirza's user avatar
0 votes
1 answer
395 views

Alloy-Script/Javascript in dynamically loaded JSP

I am currently dynamically loading various JSPs using an Ajax call. However, once a JSP is loaded none of the Javascript contained inside is working. I am assuming this is because the Script inside ...
John Smith 's user avatar
-1 votes
1 answer
213 views

Hide select dropdown in IE 11 with alloy ui in liferay

I´m using liferay 6.2 with alloy ui and I´m trying to hide the arrow from the dropdown of a select in IEE 11 with : select::-ms-expand { display: none !important; } I have also tried ....
jcromanu's user avatar
  • 1,181
0 votes
1 answer
977 views

Liferay AUI createUrl() - Reject process action

I am currently trying to automatically generate actionUrls in a datatable using aui. I am already generating the links using a formater, however, as soon as I try to exectute the action using one of ...
John Smith 's user avatar
0 votes
1 answer
73 views

changeRequest in Alloy 2.5 and Liferay 6.2 cannot be called

I am trying to migrate a portlet from Liferay 6.1 to 6.2 and forced to adapt the Alloy code to 2.5 version and the aui-pagination part: pagination = new A.Pagination({ circular: ...
Sparkan's user avatar
  • 139
-1 votes
1 answer
176 views

How can I highlight a DataTable row when a user clicks on it in AlloyUI 3.0.x?

The AlloyUI 1.5.x showcase demonstrates how to highlight rows in its "Real World" example. The example uses the DataTableSelection plugin with selectRows: true, however, that code no longer works in ...
stiemannkj1's user avatar
  • 4,418
0 votes
1 answer
544 views

How can I save and restore AlloyUI FormBuilder fields?

I want to save the user selected and predefined fields of an AlloyUI FormBuilder. I have tried to use JSON.stringify(formBuilder.get('fields')), but I get the following error: Uncaught TypeError: ...
stiemannkj1's user avatar
  • 4,418
2 votes
2 answers
3k views

uncaught Reference error YUI is not defined console error

I am using alloyui for fronted , when i trying to use this getting issue.uncaught Reference error YUI is not defined console error. below is code any help. i just updatet this code please look the ...
Sanjay Yadav's user avatar
2 votes
1 answer
2k views

Liferay aui css overriding

we have created a simple Webcontent template with Liferay 6.2 EE. The template was built with freemarker. Now we want to use our own homemade css file to apply our style to the webcontent template. ...
HelmutSteiner's user avatar
1 vote
1 answer
779 views

Alloy-ui multiple datepicker send selection to other input

I have AlloyUi datepicker that is triggered by div id="trigger", but I want to display the dates selected in the hidden input id="dates". YUI().use('aui-datepicker', function(Y) { var output ...
Baltazar's user avatar
0 votes
1 answer
923 views

how set default date in alloyui date picker in alloy ui 2.0.x version

I want set default date in alloy ui datepicker. in previous version 1.5.x that is dates attribute in calendar. new A.DatePickerSelect( { appendOrder: ['m', 'd', 'y'], calendar: { ...
Sagar Trivedi's user avatar
1 vote
0 answers
145 views

Alloy UI diagram builder, open modal dialog on Save button click present in the textcelleditor

I have created a custom node in AlloyUI diagram builder YUI.add('aui-diagram-node-DynamicsCRM', function (A, NAME) { /** * A base class for `A.DiagramNodeDynamicsCRM`. * * @class A....
Sagar Jagadesh's user avatar
1 vote
1 answer
308 views

How to access selected row in a AlloyUI Data Table

Im using AlloyUI 3.0. I used the code above: YUI().use( 'aui-datatable', function(Y) { var columns = [ {label: 'ID', key: 'id'}, {label: 'Project Name', key: '...
Maximiliano Nunes Catarino's user avatar
2 votes
1 answer
2k views

Save, Edit, Delete, and Cancel events in AlloyUI Scheduler

How can I listen for the Save, Edit, Delete, and Cancel events from AlloyUI's Scheduler? I need to save the value in our database for future use, but I don't see any documentation for this. The ...
Daksh's user avatar
  • 33
0 votes
2 answers
98 views

How to play alloy ui video continuously/repeatedly

I want to play alloy ui video to be repeated once it finish, below is my the code any help will be appreciated <div id="myVideo"></div> <script> AUI().use( 'aui-video', function(A) {...
Muhammad Essa's user avatar
0 votes
1 answer
763 views

Why does not open AlloyUI modal dialog in the second time?

I am trying to load external URL into modal AlloyUI dialog in Liferay Portal. If I open dialog at the first time the contents are showing but at the second time the contents are not showing. If ...
Mustapha Aoussar's user avatar
0 votes
2 answers
391 views

jQuery toggleClass works, adding .text() replacement on click breaks it

All - I seem to have an interesting issue in addressing a requirement where clicking a button not only shows/hides a div below it (hence the ID value on the button), but also must change the text ...
aohm1989's user avatar
  • 401
-1 votes
1 answer
790 views

How to change css styles on alloy-ui form validator?

How i can change css styles of input fields and labels when alloy ui form validator detect a empty field? This is one of the fields <label for='<portlet:namespace />formnumdoc'> <...
MGar's user avatar
  • 33
0 votes
1 answer
637 views

AUI onclick event on all anchors not triggered

I am facing a problem with the AUI().all('a').click(function(a){...}. It is not always reproducible, but it occurs 80% of the time. The main function in our logic, with the two print statements used ...
Alex's user avatar
  • 1
0 votes
0 answers
621 views

How changing tabs programatically on LIferay and stop propagation?

I would like to change of tab programatically on liferay tabs : <liferay-ui:tabs names="one,two" param="tab" refresh="false" tabsValues="one,two" type="tabs" value="<%=...
Víctor's user avatar
  • 416
3 votes
1 answer
592 views

Set alloy UI timepicker timeslots

I have an alloy ui timepicker in my form. I want to only display Hours in the Input Fields. But the problem is Alloy UI divides Timeslots in 30 minutes each. So thats my input fields displays same ...
Harsh Kanakhara's user avatar

1
2 3 4 5