Resize panel and input fields for create & edit
Resize panel and input fields for create & edit
christophgw
Posts: 3Questions: 0Answers: 0
Hi,
i would like to know if it is possible to stretch the pane and the input fields over the whole screen ?
I could do it dirty by css but is there a nice way toDo that in JS when initializing the table ?
Thanks and Kind Regards, Christoph
Meaning here in the fiels array:
fields: [
{
label: "Id",
name: "id",
type: "readonly"
}, {
label: "Type",
name: "type",
type: "select",
options: [
{label: "TEXT", value: "TEXT"},
{label: "IMAGE", value: "IMAGE"},
{label: "VIDEO", value: "VIDEO"}]
}, {
label: "Images:",
name: "files[].id",
type: "uploadMany",
display: function (fileId, counter) {
split = fileId.split(".");
fieleName = split[0]+'.jpg';
return '<img src="/admin/fileupload/thumb_' + fieleName + '"/>';
},
noFileText: 'No images'
}, {
label: "Name (intern)",
name: "name"
}, {
This discussion has been closed.
Replies
This example should help - it's showing how to make the form stretch across the width of the screen,
Colin
Thanks Colin. When i have more then one dataTable on the site this css counts for all. Is there a chance do differentiate ?
You could do something like this: http://live.datatables.net/wawiyuni/1/edit
It's adding or removing an
expand
class on the lightbox depending upon which Editor instance created it. Would that work for you?Colin
oh, that´s great. Very good idea :-)