GithubHelp home page GithubHelp logo

bootstrap's Introduction

Form.io Bootstrap Templates

This repository will change the rendering of forms in formio.js so that it uses html and classes compatible with Bootstrap 3 and Bootstrap 4 framework.

Using Bootstrap 3

import bootstrap3 from '@formio/bootstrap/bootstrap3';
import { Formio } from 'formiojs';
Formio.use(bootstrap3);

Using Bootstrap 4

import bootstrap4 from '@formio/bootstrap/bootstrap4';
import { Formio } from 'formiojs';
Formio.use(bootstrap4);

Using Bootstrap 5

import bootstrap5 from '@formio/bootstrap/bootstrap5';
import { Formio } from 'formiojs';
Formio.use(bootstrap5);

Script

Formio.Templates.framework = "bootstrap3"

If icon is not show

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script>
  Formio.icons = "fontawesome"
</script>

bootstrap's People

Contributors

aiwebb avatar alehkatsiubaformio avatar alena-levina avatar alexanderyakubovskiy avatar alexandraramanenka avatar alexeydavyd avatar antonsoftensity avatar brendanbond avatar dependabot[bot] avatar dianatsevan avatar dmitrynistratov avatar hannakurban avatar lane-formio avatar mikekotikov avatar olegkatuba avatar qthans avatar radovan-jupa avatar ralfeis avatar randallknutson avatar roflankisel avatar roma-formio avatar tanyagashtold avatar tkachez avatar travist avatar vishugowd avatar yuryrybak avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap's Issues

class="form-control"

class="form-control". how to change

this method not working

{
"label": "Text Field",
"applyMaskOn": "change",
"tableView": true,
"key": "textField",
"attributes": {
"id": "TestID",
"calss":"TEST_CLASS"
},
"type": "textfield",
"input": true
}

Bootstrap5: Missing icons for panel collapse/uncollapse

Hi Formio Team,

please can you add the icons for panel collapse/uncollapse.

they are used here:

<i class="formio-collapse-icon {{ctx.iconClass(ctx.collapsed ? 'plus-square-o' : 'minus-square-o')}} text-muted" data-title="Collapse Panel"></i>

here I think the icons must be defined: https://github.com/formio/bootstrap/blob/main/src/templates/bootstrap5/iconClass.ts
case 'plus-square-o':
biName = 'plus-square';
break;
case 'minus-square-o':
biName = 'dash-square';
break;

Best regards
Ralf

Integration with vue-formio

I'm currently trying to integrate vue-formio into an existing project which is already using Bootstrap 3.

I've tried several methods to override the form styling with this package but haven't been very successful, could you please provide some advice (or possible documentation) on how this can be integrated with the vue-formio package?

[QUESTION]how to use boostrap3?

Environment

Please provide as many details as you can:

  • Hosting type
    • Form.io
    • Local deployment
      • Version:
  • Formio.js version:
  • Frontend framework:
  • Browser:
  • Browser version:
<html>

<head>
  <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
  <link rel='stylesheet' href='https://unpkg.com/formiojs@latest/dist/formio.full.min.css'>
    <script src='https://unpkg.com/formiojs@latest/dist/formio.full.min.js'></script>
  <script type="text/javascript" charset="utf-8" src='language/zh-CN.js'></script>
  <script type="text/javascript" charset="utf-8" src='bootstrap3.js'></script>
  
  <script type='text/javascript'>
    Formio.use(bootstrap3);
    window.onload = function () {
      Formio.builder(document.getElementById('builder'), {}, {
        // baseUrl:'/',
        language: 'zh-CN',
        i18n: cn,
      }).then(function (form) {
      });
    };
  </script>
</head>

<body>
  <div id='builder'></div>
</body>

</html>

it is can not show success

Licence

Hello,

We interested in using form.io for a project however there is no licence for this module.

Can you tell us what the license is?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.