Fable bindings for SharePoint
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.gitignore
LICENSE
README.md
RELEASE_NOTES.md
build.cmd
build.js
package-lock.json
package.json

README.md

fable-import-sharepoint

Fable bindings for SharePoint. Simple library that can be used to create client-only SharePoint application in F#.

Complete application

One of the easiest way to create SharePoint application is to create the lists and then create custom forms. You can then modify the form HTML to comply with your requirements.

These days users are used to web applications that contain client functionality like validations, autocomplete etc. written in JavaScript.

There are already some helper JavaScript libraries like SharePoint Cascaded Lookups - JavaScript based or The Patterns and Practices JavaScript Core Library.

If you want to build an application in SharePoint and modify the form functionality in F#, you implement IApplicationV2 interface.

JavaScript API reference for SharePoint 2013 (JSOM)

Most of the functions from JavaScript API reference for SharePoint 2013 (JSOM) are available as Fable interfaces and F# functions.

async {
    let! currentUser = clientContext |> getCurrentUserAsync
    let selectedIds = getSelectedIds()
    let list = web.get_lists().getByTitle(listName)        
    logO "List" list
} |> Async.StartImmediate