How to expand wrapped text in a shiny datatableHow to show each cell table data in popup window using datatables?How to sort a dataframe by multiple column(s)How to make a great R reproducible exampleR Shiny set DataTable column widthPrevent column name wrap in shiny DataTableRender datatable with sparklines in ShinyDatatable not rendering in shinyShiny datatable how to change themeShiny - display URL's in datatableShiny DT datatable to RmarkdownInsert image in datatable next to some text in shiny

What the purpose of the fuel shutoff valve?

How can I tell if there was a power cut when I was out?

How important is a good quality camera for good photography?

Sci-fi short story: plants attracting spaceship and using them as a agents of pollination between two planets

Short story about a group of sci-fi writers sitting around discussing their profession

Raw curve25519 public key points

How could an engineer advance human civilization by time traveling to the past?

Running a linear programming model to maximize binned predictions

Is there a way to shorten this while condition?

Why are MEMS in QFN packages?

The seven story archetypes. Are they truly all of them?

Why does the salt in the oceans not sink to the bottom?

What happens if an IRB mistakenly approves unethical research?

"It is what it is" in French

Is the statement "I/we am/are pressing charges" incorrect?

Can 々 stand for a duplicated kanji with a different reading?

What is the spanish equivalent of "the boys are sitting"?

What does the Find Familiar spell target?

Why must API keys be kept private?

Why do people say "I am broke" instead of "I am broken"?

Sometimes you are this word with three vowels

What happens when two cards both modify what I'm allowed to do?

Why is chess failing to attract big name sponsors?

Extrapolation v. Interpolation



How to expand wrapped text in a shiny datatable


How to show each cell table data in popup window using datatables?How to sort a dataframe by multiple column(s)How to make a great R reproducible exampleR Shiny set DataTable column widthPrevent column name wrap in shiny DataTableRender datatable with sparklines in ShinyDatatable not rendering in shinyShiny datatable how to change themeShiny - display URL's in datatableShiny DT datatable to RmarkdownInsert image in datatable next to some text in shiny






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I have a Shiny app in which the text too long and gets truncated. Is there a way to "open" (expand) this text when clicking on it? Here is my reproducible example:



datatable(iris[c(1:20, 51:60, 101:120), ], options = list(columnDefs = list(list(
targets = 5,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
))), callback = JS('table.page(3).draw(false);'))









share|improve this question



















  • 1





    By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

    – A. Suliman
    Mar 26 at 16:06












  • @A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

    – Schottky
    Mar 27 at 8:15

















4















I have a Shiny app in which the text too long and gets truncated. Is there a way to "open" (expand) this text when clicking on it? Here is my reproducible example:



datatable(iris[c(1:20, 51:60, 101:120), ], options = list(columnDefs = list(list(
targets = 5,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
))), callback = JS('table.page(3).draw(false);'))









share|improve this question



















  • 1





    By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

    – A. Suliman
    Mar 26 at 16:06












  • @A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

    – Schottky
    Mar 27 at 8:15













4












4








4


1






I have a Shiny app in which the text too long and gets truncated. Is there a way to "open" (expand) this text when clicking on it? Here is my reproducible example:



datatable(iris[c(1:20, 51:60, 101:120), ], options = list(columnDefs = list(list(
targets = 5,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
))), callback = JS('table.page(3).draw(false);'))









share|improve this question
















I have a Shiny app in which the text too long and gets truncated. Is there a way to "open" (expand) this text when clicking on it? Here is my reproducible example:



datatable(iris[c(1:20, 51:60, 101:120), ], options = list(columnDefs = list(list(
targets = 5,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
))), callback = JS('table.page(3).draw(false);'))






r shiny dt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 15:14









JasonAizkalns

13.2k4 gold badges36 silver badges87 bronze badges




13.2k4 gold badges36 silver badges87 bronze badges










asked Mar 26 at 15:04









SchottkySchottky

547 bronze badges




547 bronze badges







  • 1





    By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

    – A. Suliman
    Mar 26 at 16:06












  • @A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

    – Schottky
    Mar 27 at 8:15












  • 1





    By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

    – A. Suliman
    Mar 26 at 16:06












  • @A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

    – Schottky
    Mar 27 at 8:15







1




1





By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

– A. Suliman
Mar 26 at 16:06






By default title attribute in span tag will open "show" once your mouse hover over Species. If you're looking for something like modal, then see here

– A. Suliman
Mar 26 at 16:06














@A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

– Schottky
Mar 27 at 8:15





@A.Suliman Yes, by default text is shown. The problem is I need to copy the entire text, and this is not possible with the default options. Seems that modal are what I'm searching, but since I'm totally new to JS, can you help me implementing my code?

– Schottky
Mar 27 at 8:15












1 Answer
1






active

oldest

votes


















2














Here is one way based on my previous answer. Please note if you open the table in the browser details_open.png will work but it doesn't work in the "RStudio viewer" and will appear as a question mark.



library(DT)
iris$Sepal.Width <- 'Verrrrrrrrry Looooooooooooooong Commmmmmment'

iris_upd <- cbind(' ' = '<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>', iris)

datatable(
iris_upd,
escape = -2,
options = list(
columnDefs = list(
list(visible = FALSE, targets = c(0)),
list(orderable = FALSE, className = 'details-control', targets = 1),
list(
targets = 3,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
)
)
),
callback = JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d)
return'<p>' + d[3] + '</p>';
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data())).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
))


Using column names



JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d, ind, tit)
out = '';
for(i=0; i<ind.length; i++)
out += tit[ind[i]] + ':' + '&ensp;' + d[ind[i]] + '<br>';

return out;
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
var title = table.columns().header(); //Getting all column names 'headers'
title_names = [];
for (i = 0; len = title.length, i < len; i++)
title_names.push(title[i].innerText);

nms = ['Species','Sepal.Width']; //Define column names here
indices = [];
for (i=0; i<nms.length; i++)
indices.push(title_names.indexOf(nms[i]))

if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data(), indices, title_names)).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
)





share|improve this answer




















  • 1





    ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

    – Schottky
    Mar 27 at 10:13











  • I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

    – Schottky
    Mar 28 at 10:29











  • @Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

    – A. Suliman
    Mar 28 at 14:27











  • Thank you, I'm trying different commands/codes but I couldn't figured it out

    – Schottky
    Mar 28 at 14:28






  • 1





    It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

    – Schottky
    Mar 30 at 14:19










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360371%2fhow-to-expand-wrapped-text-in-a-shiny-datatable%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Here is one way based on my previous answer. Please note if you open the table in the browser details_open.png will work but it doesn't work in the "RStudio viewer" and will appear as a question mark.



library(DT)
iris$Sepal.Width <- 'Verrrrrrrrry Looooooooooooooong Commmmmmment'

iris_upd <- cbind(' ' = '<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>', iris)

datatable(
iris_upd,
escape = -2,
options = list(
columnDefs = list(
list(visible = FALSE, targets = c(0)),
list(orderable = FALSE, className = 'details-control', targets = 1),
list(
targets = 3,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
)
)
),
callback = JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d)
return'<p>' + d[3] + '</p>';
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data())).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
))


Using column names



JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d, ind, tit)
out = '';
for(i=0; i<ind.length; i++)
out += tit[ind[i]] + ':' + '&ensp;' + d[ind[i]] + '<br>';

return out;
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
var title = table.columns().header(); //Getting all column names 'headers'
title_names = [];
for (i = 0; len = title.length, i < len; i++)
title_names.push(title[i].innerText);

nms = ['Species','Sepal.Width']; //Define column names here
indices = [];
for (i=0; i<nms.length; i++)
indices.push(title_names.indexOf(nms[i]))

if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data(), indices, title_names)).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
)





share|improve this answer




















  • 1





    ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

    – Schottky
    Mar 27 at 10:13











  • I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

    – Schottky
    Mar 28 at 10:29











  • @Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

    – A. Suliman
    Mar 28 at 14:27











  • Thank you, I'm trying different commands/codes but I couldn't figured it out

    – Schottky
    Mar 28 at 14:28






  • 1





    It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

    – Schottky
    Mar 30 at 14:19















2














Here is one way based on my previous answer. Please note if you open the table in the browser details_open.png will work but it doesn't work in the "RStudio viewer" and will appear as a question mark.



library(DT)
iris$Sepal.Width <- 'Verrrrrrrrry Looooooooooooooong Commmmmmment'

iris_upd <- cbind(' ' = '<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>', iris)

datatable(
iris_upd,
escape = -2,
options = list(
columnDefs = list(
list(visible = FALSE, targets = c(0)),
list(orderable = FALSE, className = 'details-control', targets = 1),
list(
targets = 3,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
)
)
),
callback = JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d)
return'<p>' + d[3] + '</p>';
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data())).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
))


Using column names



JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d, ind, tit)
out = '';
for(i=0; i<ind.length; i++)
out += tit[ind[i]] + ':' + '&ensp;' + d[ind[i]] + '<br>';

return out;
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
var title = table.columns().header(); //Getting all column names 'headers'
title_names = [];
for (i = 0; len = title.length, i < len; i++)
title_names.push(title[i].innerText);

nms = ['Species','Sepal.Width']; //Define column names here
indices = [];
for (i=0; i<nms.length; i++)
indices.push(title_names.indexOf(nms[i]))

if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data(), indices, title_names)).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
)





share|improve this answer




















  • 1





    ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

    – Schottky
    Mar 27 at 10:13











  • I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

    – Schottky
    Mar 28 at 10:29











  • @Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

    – A. Suliman
    Mar 28 at 14:27











  • Thank you, I'm trying different commands/codes but I couldn't figured it out

    – Schottky
    Mar 28 at 14:28






  • 1





    It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

    – Schottky
    Mar 30 at 14:19













2












2








2







Here is one way based on my previous answer. Please note if you open the table in the browser details_open.png will work but it doesn't work in the "RStudio viewer" and will appear as a question mark.



library(DT)
iris$Sepal.Width <- 'Verrrrrrrrry Looooooooooooooong Commmmmmment'

iris_upd <- cbind(' ' = '<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>', iris)

datatable(
iris_upd,
escape = -2,
options = list(
columnDefs = list(
list(visible = FALSE, targets = c(0)),
list(orderable = FALSE, className = 'details-control', targets = 1),
list(
targets = 3,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
)
)
),
callback = JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d)
return'<p>' + d[3] + '</p>';
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data())).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
))


Using column names



JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d, ind, tit)
out = '';
for(i=0; i<ind.length; i++)
out += tit[ind[i]] + ':' + '&ensp;' + d[ind[i]] + '<br>';

return out;
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
var title = table.columns().header(); //Getting all column names 'headers'
title_names = [];
for (i = 0; len = title.length, i < len; i++)
title_names.push(title[i].innerText);

nms = ['Species','Sepal.Width']; //Define column names here
indices = [];
for (i=0; i<nms.length; i++)
indices.push(title_names.indexOf(nms[i]))

if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data(), indices, title_names)).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
)





share|improve this answer















Here is one way based on my previous answer. Please note if you open the table in the browser details_open.png will work but it doesn't work in the "RStudio viewer" and will appear as a question mark.



library(DT)
iris$Sepal.Width <- 'Verrrrrrrrry Looooooooooooooong Commmmmmment'

iris_upd <- cbind(' ' = '<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>', iris)

datatable(
iris_upd,
escape = -2,
options = list(
columnDefs = list(
list(visible = FALSE, targets = c(0)),
list(orderable = FALSE, className = 'details-control', targets = 1),
list(
targets = 3,
render = JS(
"function(data, type, row, meta) ",
"return type === 'display' && data.length > 6 ?",
"'<span title="' + data + '">' + data.substr(0, 6) + '...</span>' : data;",
"")
)
)
),
callback = JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d)
return'<p>' + d[3] + '</p>';
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data())).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
))


Using column names



JS("
table.column(1).nodes().to$().css(cursor: 'pointer');
var format = function(d, ind, tit)
out = '';
for(i=0; i<ind.length; i++)
out += tit[ind[i]] + ':' + '&ensp;' + d[ind[i]] + '<br>';

return out;
;
table.on('click', 'td.details-control', function()
var td = $(this), row = table.row(td.closest('tr'));
var title = table.columns().header(); //Getting all column names 'headers'
title_names = [];
for (i = 0; len = title.length, i < len; i++)
title_names.push(title[i].innerText);

nms = ['Species','Sepal.Width']; //Define column names here
indices = [];
for (i=0; i<nms.length; i++)
indices.push(title_names.indexOf(nms[i]))

if (row.child.isShown())
row.child.hide();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_open.png"/>');
else
row.child(format(row.data(), indices, title_names)).show();
td.html('<img src="https://raw.githubusercontent.com/DataTables/DataTables/master/examples/resources/details_close.png"/>');

);"
)






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 30 at 13:55

























answered Mar 27 at 10:03









A. SulimanA. Suliman

7,0734 gold badges13 silver badges26 bronze badges




7,0734 gold badges13 silver badges26 bronze badges







  • 1





    ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

    – Schottky
    Mar 27 at 10:13











  • I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

    – Schottky
    Mar 28 at 10:29











  • @Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

    – A. Suliman
    Mar 28 at 14:27











  • Thank you, I'm trying different commands/codes but I couldn't figured it out

    – Schottky
    Mar 28 at 14:28






  • 1





    It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

    – Schottky
    Mar 30 at 14:19












  • 1





    ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

    – Schottky
    Mar 27 at 10:13











  • I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

    – Schottky
    Mar 28 at 10:29











  • @Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

    – A. Suliman
    Mar 28 at 14:27











  • Thank you, I'm trying different commands/codes but I couldn't figured it out

    – Schottky
    Mar 28 at 14:28






  • 1





    It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

    – Schottky
    Mar 30 at 14:19







1




1





ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

– Schottky
Mar 27 at 10:13





ahah thank you very much, I was finishing to implement the code but you did it before me. By the way, worked perfectly!

– Schottky
Mar 27 at 10:13













I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

– Schottky
Mar 28 at 10:29





I have a last question: how can I set return'<p>' + d[3] + '</p>'; to point not on the third column but on the column name (or multiple columns)? I have a dynamic table and pointing on a row number is not convenient.

– Schottky
Mar 28 at 10:29













@Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

– A. Suliman
Mar 28 at 14:27





@Schottky it's an interesting question but I have no idea how to do it. I'll check and let you know ;).

– A. Suliman
Mar 28 at 14:27













Thank you, I'm trying different commands/codes but I couldn't figured it out

– Schottky
Mar 28 at 14:28





Thank you, I'm trying different commands/codes but I couldn't figured it out

– Schottky
Mar 28 at 14:28




1




1





It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

– Schottky
Mar 30 at 14:19





It works perfectly now. By the way, I fixed the comment (that was the problem, I suppose) before your edit, but probably I didn't clear the environment :D However, thank you very much!

– Schottky
Mar 30 at 14:19








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55360371%2fhow-to-expand-wrapped-text-in-a-shiny-datatable%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript