1.0.0 • Published 7 years ago

reactkendo v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ReactKendo

Why ReactKendo?

I love React, I think it's awesome. Sometimes in order to adopt frameworks like React, it needs to "just work" with someone else's favorite UI framework (ie: Kendo). Embedding external plugins and widgets like jQuery with React is actually really easy. That said, Kendo has projects to bind with Angular and Knockout, but not React. This project aims to make using React + Kendo easy and fun -- drop in one library and use the same API detailed on the Kendo UI documentation.

How to use this?

  • Get react.js up and running in your project
  • Get ReactKendo via...
    • bower bower install reactkendo
    • npm npm install reactkendo
    • Directly download from the repository
  • Use elements like <reactKendo.Kendo.DatePicker> OR alias using
    var Kendo = reactKendo.Kendo;
    <Kendo.DatePicker ...>
  • Specify bound properties much like the Kendo Knockout project, using ReactKendo's 'bind' property.
    var Kendo = reactKendo.Kendo;
    <Kendo.DatePicker bind={{value:this.state.startDate}}></Kendo.DatePicker>

Which widgets are implemented?

Almost all of the kendo widgets are implemented, but not all of them have been thoroughly tested with react bindings. There are bindings defined for the following widgets:

  • AutoComplete
  • BarCode
  • Button
  • Calendar
  • Chart
  • ColorPalette
  • ColorPicker
  • DatePicker
  • DateTimePicker
  • Diagram
  • Draggable
  • DropDownList
  • DropTarget
  • Editor
  • Gantt
  • Grid
  • LinearGauge
  • ListView
  • Map
  • MaskedTextBox
  • Menu
  • MobileButtonGroup
  • MobileSwitch
  • MultiSelect
  • Notification
  • NumericTextBox
  • PanelBar
  • Pager
  • PivotConfigurator
  • PivotGrid
  • ProgressBar
  • QRCode
  • RadialGauge
  • ResponsivePanel
  • Scheduler
  • Slider
  • Sortable
  • Splitter
  • TabStrip
  • TimePicker
  • ToolBar
  • ToolTip
  • TreeList
  • TreeView
  • Window
  • Upload

Will this help me with my own widgets?

Yes. You can use the wrapper factory reactKendo.common.createCommonClassForWidget(). For example:

    //The wrapper factory accepts arguments like so...
    // createCommonClassForWidget(widgetNameString, (props) => reactComponent);

    //Given a widget that is registered like so...
    $('#sometag').kendoAwesomeDivWidget(args);
    
    //You can use the factory like so ...
    var KendoAwesomeDivWidget = reactKendo.common.createCommonClassForWidget('kendoAwesomeDivWidget', 
        (props) => <div {...props}>{props.children}</div>);
    
    //A widget that uses a self-closing 'input' tag
    var KendoAwesomeInputWidget = reactKendo.common.createCommonClassForWidget('kendoAwesomeInputWidget', 
        (props) => <input {...props} />);

Please be aware that at this stage, this particular API call will most likely change.

Why isn't there more source code?

Because implementing a kendo widget wrapper with react is actually REALLY TRIVIAL to do. Testing the different permutations of kendo components and configurations is far more difficult.

How do I run the demos?

You can run node app from the root of the project, then navigate to http://localhost:8080/index.html to see a list of demos.

License

The MIT License (MIT)

Copyright (c) 2015 Michael K Snead

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.