Problem Drag-able list items.[WebOS 3.0 ENYO] - webos

i 'mstuck in one problem Drag-able list items.... i want to arrange my list with drag option
I'm building an app that makes heavy use of lists and I can't seem to find any way to make list items re-orderable by drag and drop. Am I missing something or is there simply no way to do this?
suppose
1.lorem ipsum aa
2.lorem ipsum bb
3.lorem ipsum cc
4.lorem ipsum rr
5.lorem ipsum ee
drag 2nd list item and set it to 4th ... i know this is easily possible in iphone but is there any option in enyo?
Any help would be greatly appreciated :)
thanks for your valuable time.

In the 1.0 release, the Enyo framework doesn't have reorderable lists.

Somebody on the WebOs development forums actually created a reorder-able list with enyo and released the code. See - https://developer.palm.com/distribution/viewtopic.php?f=11&t=15850

Related

What do I need to do this?

I am new to coding and wanted to get some hands on practice with a project I have in mind. Here it is:
Let's say you have blank page and on the side of a screen you have several items you can choose to draw on the blank page. For example the background can be mountains, the ocean, a forest etc. On top of that you can place a house, a church or another selectable element. Whatever you like.
It is like a picture editor where you can put together a picture with different pre-given elements. Or like in video games where you can create your own character.
What would I need to build a web application for that kind of thing?
This link should get you started but it won't be the complete answer to your question - http://www.webdesignerdepot.com/2013/08/how-to-use-html5s-drag-and-drop/
Essentially, you can achieve your image dragging and dropping using similar techniques. It will require a bit of Spike work from yourself, and looking into how HTML5 can handle drag and drop. I discovered this resource fairly quickly and I think the solution you want isn't as complicated as you may think, it just requires a bit of know-how regarding drag and drop operations within HTML5 :-)
Also, there may already be some JavaScript based API's that do this sort of thing easier but I'm not too aware - I suppose starting this way could be a great introduction for you and you may wish to expand once you've done some work for it :-)
Hope this helps you and your coding journey!

create a simple (and visible!) UI slider in Unity 5

![enter image description here][1]please I need some help, this should apparently be something very simple and basic to do, but maybe I'm missing something.
I'm quite newbie to Unity3d, I had no much problem with creating a somewhat flashy 2.D scene (I mean 2D with different layers in Z level), scripts, etc. But I'm having trouble to create a "UI Slider" object: when I create it, it just shows nothing on screen. How can I make it visible? I just need to create a very simple, plain slider whose value can be controlled at runtime by means of a script.
thanks.
Well.. since you give nothing to go on, I suggest that you take a look at a tutorial for the UI:
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/using-the-ui-tools
If you have troubles after this tutorial, come back with an example of your problem to make people more willing to sacrifice their time in helping you.
Hope this is somewhat useful
Take a look at the Unity3D docs here.
http://docs.unity3d.com/Manual/script-Slider.html
It should have what you are looking for.

Offline Lorem Ipsum Bookmarklet

I'm looking for a very simple Bookmarklet which presents me with some Lipsum text. The ones I've seen generally make requests to a generator - but I want one which I can use offline (how often does Lorum Ipsum text change..?!).
Has anyone got any suggestions? It'd be nice to be able to specify how many paragraphs I want.
I've written this Bookmarklet. I've only tested in Firefox - it's simple, but meets my requirements. I don't have a Blog, so I thought I'd share it on Stack instead!
(though, I can't post the bookmarklet itself on Stack, so please see attached fiddle... also, the code is bodged together and not tidied up, but, it's functional for my need!)
.

Can I add rich formatting (bold, italics, underline) on XForms labels and hints?

We are developing an XForms-based survey system. The client wants to add rich-formatting to labels and hints.
Is this possible? If so, how do you define formatting on the XForm xml? Is there a reference page that I can go to?
UPDATE: We're currently implementing for ODK, which uses JavaRosa. We're planning to launch our own mobile application later, keeping compatibility with the current ODK Collect application.
UPDATE 2: Our client would actually like to have a label in the form of:
The quick brown fox jumped over the lazy dog.
ODK Collect doesn't have rich formatting but you can use images. I put together a text renderer that allows you to format your text with pango markup if that's any help.

Xcode 4 - Dynamic Interface Tutorial needed

I'm trying to create a news viewer with Xcode 4. This should look like the following:
===============================
Title comes here ------- Date
Image
News Body
================================
As you can see, the news body must be pushed downward depending on the size of the image. The image must be pushed downward as the height of the title varies. I know I have to do some programming to position them dynamically. The only problem is I'm not familiar with CGRect and Frame things...
Where can I find a tutorial or sample code I can take a look and get some ideas? Practical codes or tutorials would be appreciated as just reading documentation doesn't really give me a clear idea how to approach this.
UILabel provides -sizeWithFont:constrainedToSize:lineBreakMode: which will allow you to determine the size needed to fit the text you wish to display. I put together an example of resizing UILabels when I first ran into a similar problem and posted it here: http://blog.carbonfive.com/2009/07/10/resizing-uilabel-to-fit-text/
I'm afraid that's rather old now but I think should still be of some use.

Resources