mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-03 19:42:27 +08:00
Removing original files left over from rename
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
/// <reference path="jquery.succinct.d.ts" />
|
||||
|
||||
// Call with no arguments (accepting defaults)
|
||||
$(".truncate").succinct();
|
||||
|
||||
// Specify size
|
||||
$(".truncate").succinct({
|
||||
size: 120
|
||||
});
|
||||
|
||||
// Specify ellipsis replacement
|
||||
$(".truncate").succinct({
|
||||
omission: "→"
|
||||
});
|
||||
|
||||
// Specify flag to leave trailing special characters
|
||||
$(".truncate").succinct({
|
||||
ignore: false
|
||||
});
|
||||
|
||||
// Combine options
|
||||
$(".truncate").succinct({
|
||||
size: 120,
|
||||
omission: '...',
|
||||
ignore: false
|
||||
});
|
||||
|
||||
// Can chain jQuery methods
|
||||
$(".truncate")
|
||||
.succinct()
|
||||
.removeClass("truncate");
|
||||
18
jquery.succinct/jquery.succinct.d.ts
vendored
18
jquery.succinct/jquery.succinct.d.ts
vendored
@@ -1,18 +0,0 @@
|
||||
// Type definitions for jQuery Succinct v1.1.0
|
||||
// Project: http://mikeking.io/succinct/
|
||||
// Definitions by: Matt Brooks <https://github.com/EnableSoftware/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
declare module JQuerySuccinct {
|
||||
interface Options {
|
||||
size?: number;
|
||||
omission?: string;
|
||||
ignore?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
succinct(settings?: JQuerySuccinct.Options): JQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user