bootstrap css

I downloaded the bootstrap library, added to public and on, I would just like a check if I can implement it as follows:

?>

<link href="<?php echo sc_url_library(‘prj’, ‘bootstrap’, ‘bootstrap-3.3.7-dist/css/bootstrap.css’);?>" rel=“stylesheet”/>
<link href="<?php echo sc_url_library(‘prj’, ‘bootstrap’, ‘bootstrap-3.3.7-dist/css/bootstrap.min.css’);?>" rel=“stylesheet”/>

<?php

I realy don’t know. Especially the sc macro’s out of scope. But just try it, there are only a few lines of code. Other hint, try in a blank application and look at the generated code. Could set you to the right track, if you aren’t already.

not works…can help me for right code for libary insert in pubblic…thanks…

I remember that there is an official SC video which integrates some bootstrap stuff. I guess that it will show you at least how to embed the libs.

works i have test…

I downloaded the bootstrap library, added to public and on, I would just like a check if I can implement it as follows:

?>

<link href="<?php echo sc_url_library(‘prj’, ‘bootstrap’, ‘bootstrap-3.3.7-dist/css/bootstrap.css’);?>" rel=“stylesheet”/>
<link href="<?php echo sc_url_library(‘prj’, ‘bootstrap’, ‘bootstrap-3.3.7-dist/css/bootstrap.min.css’);?>" rel=“stylesheet”/>

<?php

Hi Andrea,

In my case:

<script type=“text/javascript” src="<?php echo sc_url_library(‘sys’, ‘js’, ‘jquery/jquery-3.1.0.min.js’); ?>"></script>

“sys” =public library
“js” = a directory with javascript librarys
‘jquery’ = the jquery folder with the js files.

Saludos.

ok…thanks…
i use

if ({stato_invio} == 1 )

{

{inviata}=’<span class=“label label-success”>INVIATA</span>’;

}

elseif ({stato_invio} == 3 )

{

{inviata}=’<span class=“label label-primary”>InCoda</span>’;

}

elseif ({stato_invio} == 2 )

{

{inviata}=’<span class=“label label-danger”>Errore’;

}

wow I never try that thing, I apply bootstrap only in a blank application, never with a grid,awesome andrea.

code inside onScriptInit’s grid event:

?>
<script type=“text/javascript” src="<?php echo sc_url_library(‘sys’, ‘js’, ‘jquery/jquery-3.1.0.min.js’); ?>"></script>
<script type=“text/javascript” src="<?php echo sc_url_library(‘sys’, ‘js’, ‘bootstrap-3.3.7/js/bootstrap.min.js’); ?>"></script>
<link href="<?php echo sc_url_library(‘sys’, ‘js’, ‘bootstrap-3.3.7/css/bootstrap.css’); ?>" rel=‘stylesheet’ />
<?php

then in onRecord event you put the code for the column, for example the Andrea code:

if ({stato_invio} == 1 )

{

{inviata}=’<span class=“label label-success”>INVIATA</span>’;

} …