Jump to content

UI Formatting changes in server?


Recommended Posts

Posted (edited)

Hi guys!

 

Went to go load a plugin I have been working on and noticed that when I did there was some formatting changes in how the HTML was rendered.

 

Currently I have a unordered list of buttons which contain a "delete" button on the end of them.

 

Right now, the server is not drawing the main button in the list, only the text. However my delete button is being drawn properly.

 

Could someone give me some guidance please?

Edited by chef
Posted

can you show a screenshot?

Posted

example.png

Posted

what i would do is take a look at the dropbox plugin in the catalog, or google drive. they use a listview like you are. compare your markup to theirs.

Posted

Cool. Thanks.

Posted

I'm back...

 

There is definitely something wrong with my markup, butt wh is I just can't tell. It looks pretty much like the other plugins:

 

HTML:

 <div id="newClientList">
    <ul data-role='listview' data-inset='true' data-split-icon='delete' id='clientProfiles'>
    </ul>
 </div>

CODE:

 

My HTML writing function:

 function getClientHtml(device) {
                var html = "";
                html += '<li data-client-name="' + device.Name + '" data-client-id="' + device.Id + '" class="clientProfile">';
                html += '<a href="#" >';
                html += device.Name;
                html += '</a>';
                html += '<a href="#" data-icon="delete" class="btnDeleteProfile"></a>';
                html += '</li>';
                return html;
            }

It gets called like this:

 $('#clientProfiles', page).append(getClientHtml(c)).listview('refresh');

And yet none of the buttons get created properly.

Posted

get rid of the .listview('refresh')

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...